List workflow task attachments
Lists all attachments of a workflow task.
Request syntax
GET /workflows/${WORKFLOW_ID}/tasks/${TASK_ID}/attachments HTTP/1.1
Host: api.simworkflow.com
Authorization: Bearer ${PERSONAL_ACCESS_TOKEN}
Request headers
Authorization |
|
---|
Response syntax
HTTP/1.1 200 OK
[
{
"id": String,
"workflowId": String,
"taskId": String,
"contentType": String,
"fileName": String,
"sizeInBytes": Long,
"createdOn": Timestamp
}
]
Response elements
If the action is successful, the service sends back an HTTP 200 response with an array of attachments in JSON format.
Errors
See also general errors.
cURL example: get all workflow task attachments
GET /workflows/23bBE1NGSll5narSt8NLsy/tasks/39K2z9FLqulkggtQRisYlw/attachments
curl \
--request "GET" \
--header "Authorization: Bearer ${PERSONAL_ACCESS_TOKEN}" \
--url "https://api.simworkflow.com/workflows/23bBE1NGSll5narSt8NLsy/tasks/39K2z9FLqulkggtQRisYlw/attachments"
RESPONSE
HTTP/1.1 200 OK
[
{
"id": "3qR2txuUUAcWioeylO4ekf",
"workflowId": "23bBE1NGSll5narSt8NLsy",
"taskId": "39K2z9FLqulkggtQRisYlw",
"contentType": "image/png",
"fileName": "document-scan.png",
"sizeInBytes": 1959,
"createdOn": "2023-11-10T03:00:29.316097Z"
}
]