latestOpenAPI 3.1.02026-08-171503582.2 MB

6199a9464227

Attachments

Upload an attachment

Uploads a file as a task-level attachment.

Requires workflowRunId and taskId to identify the target task. Accepts multipart form data (fields workflowRunId + taskId + file) or JSON with base64-encoded content (fields workflowRunId + taskId + fileBase64). Maximum file size: 20 MB for multipart, 10 MB for base64. You can also send workflowRunId + taskId + fileUploadId to attach a file you uploaded with createFileUpload; the fileUploadId is single-use.

post/attachments

Request body

workflowRunIdstring required

The ID of the Workflow Run.

taskIdstring required

The ID of the Task.

filestring binary

Uploaded file reference. Use the upload endpoint to attach content.

fileUploadIdstring

Response

Example response

{
  "data": {
    "createdBy": {
      "id": "naAJxoDIuwdgNsQHGRRGqA",
      "email": "jane.doe@example.com",
      "username": "Jane Doe"
    },
    "taskId": "iRp_0PE0Ry_tiaT3_YZM0w",
    "workflowRunId": "iRp_0PE0Ry_tiaT3_YZM0w",
    "workflowId": "iRp_0PE0Ry_tiaT3_YZM0w",
    "links": [
      {
        "href": "https://api.process.st/api/v1.1/resource/XXX"
      }
    ]
  },
  "links": [
    {
      "href": "https://api.process.st/api/v1.1/resource/XXX"
    }
  ]
}