Runrunit

Interact with the Runrunit API

Task → Share

AI-generated

Summary

Share a specified task by sending an API request with optional additional data or preview the corresponding curl command without executing it.

Inputs

  • Mode — Select whether to execute the API request ('execute') or only preview the curl command ('preview'). Defaults to 'execute'.
  • Task ID (required) — The unique identifier of the task to be shared.
  • Payload (JSON) — Optional JSON data to include in the share request body.

Output shape

A JSON object representing the API response confirming the task sharing action or the curl command preview as a string, depending on the selected Mode.

If 'Mode' is set to 'execute', the node returns the actual API response data. If set to 'preview', the node returns the curl command string without making the request.

Examples

Example 1: Execute the share operation for a task with a given ID and optional payload to specify sharing details.

Set Mode to 'Execute request', provide the Task ID, and optionally add a JSON payload with sharing parameters.

Example 2: Preview the curl command for sharing a specific task to verify or debug the API request before execution.

Set Mode to 'Preview curl', provide the Task ID, and optionally add a JSON payload.

Links

Discussion