POST
/
v1
/
runs
/
{run_id}
/
retry
Retry Run
curl --request POST \
  --url https://api.cyberdesk.io/v1/runs/{run_id}/retry \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input_values": {},
  "sensitive_input_values": {},
  "file_inputs": [
    {
      "filename": "<string>",
      "content": "<string>",
      "target_path": "<string>",
      "cleanup_imports_after_run": false
    }
  ],
  "machine_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "pool_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "reuse_session": true,
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "release_session_after": true
}'
{
  "workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "machine_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization_id": "<string>",
  "status": "scheduling",
  "error": [
    "<string>"
  ],
  "output_data": {},
  "input_attachment_ids": [
    "<string>"
  ],
  "output_attachment_ids": [
    "<string>"
  ],
  "run_message_history": [
    {}
  ],
  "input_values": {},
  "pool_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "sensitive_input_aliases": {},
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "session_alias": "<string>",
  "release_session_after": true,
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

run_id
string<uuid>
required

Body

application/json

Options for retrying an existing run in-place (same run_id).

Notes:

  • If file_inputs are provided, existing input attachments are replaced.
  • Prior outputs, history, and output attachments are always cleared as part of retry.
  • Retry is only allowed for terminal runs (success, error, or cancelled).
input_values
object | null

Override input values for workflow variables

sensitive_input_values
object | null

Provide new sensitive inputs; stored in vault and mapped to aliases

file_inputs
FileInput · object[] | null

Provide new input files for this retry; replaces existing input attachments

machine_id
string<uuid> | null

Override specific machine for this retry

pool_ids
string<uuid>[] | null

Override pool filters if not using a specific machine

reuse_session
boolean | null
default:true

Keep existing session_id. If false and no session_id provided, clears session fields

session_id
string<uuid> | null

Set/override session_id for this retry

release_session_after
boolean | null

Override release_session_after behavior for this retry

Response

Successful Response

Run response schema

workflow_id
string<uuid>
required
machine_id
string<uuid> | null
required
id
string<uuid>
required
status
enum<string>
required
Available options:
scheduling,
running,
success,
cancelled,
error
created_at
string<date-time>
required
user_id
string<uuid> | null
organization_id
string | null
error
string[] | null
output_data
object | null
input_attachment_ids
string[] | null
output_attachment_ids
string[] | null
run_message_history
Run Message History · object[] | null
input_values
object | null
pool_ids
string<uuid>[] | null
sensitive_input_aliases
object | null
session_id
string<uuid> | null
session_alias
string | null
release_session_after
boolean | null