POST
/
v1
/
run-attachments
Create Run Attachment
curl --request POST \
  --url https://api.cyberdesk.io/v1/run-attachments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "filename": "<string>",
  "content": "<string>",
  "content_type": "<string>",
  "attachment_type": "input",
  "target_path": "<string>",
  "cleanup_imports_after_run": false,
  "expires_at": "2023-11-07T05:31:56Z"
}'
{
  "filename": "<string>",
  "content_type": "<string>",
  "attachment_type": "input",
  "target_path": "<string>",
  "cleanup_imports_after_run": false,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization_id": "<string>",
  "run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "size_bytes": 123,
  "storage_path": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "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.

Body

application/json

Schema for creating a run attachment

run_id
string<uuid>
required
filename
string
required
content
string
required

Base64 encoded file content

content_type
string
required
attachment_type
enum<string>
required
Available options:
input,
output
target_path
string | null
cleanup_imports_after_run
boolean
default:false
expires_at
string<date-time> | null

Response

Successful Response

Run attachment response schema

filename
string
required
content_type
string
required
attachment_type
enum<string>
required
Available options:
input,
output
id
string<uuid>
required
run_id
string<uuid>
required
size_bytes
integer
required
storage_path
string
required
created_at
string<date-time>
required
target_path
string | null
cleanup_imports_after_run
boolean
default:false
user_id
string<uuid> | null
organization_id
string | null
expires_at
string<date-time> | null