POST
/{orgId}/{itemId}/jobs/{jobId}/attachments
Add an attachment to a job to provide additional or support information related to the job. The jobUpdateAttachments privilege is required to add an attachment to a job.
Body parameters
Supported content types: multipart/form-data
Name | Type | Required | Description |
---|---|---|---|
token | string | ||
attachment | string(binary) | The file to be uploaded and attached to the job. | |
alias | string | Display name for the attachment. | |
folder | string | Folder under which the attachment will be stored. | |
step | string | Optional. The Step ID value used to associate the attachment with a specific step. |
Path parameters
Name | Type | Required |
---|---|---|
job | string | |
org | string | |
item | string |
Response status
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | success | inline |
400 | Bad Request | error | WorkflowExceptionDTO |
Response details
Status Code 200
JobAttachmentResult
Name | Type | Required | Description |
---|---|---|---|
alias | string | ||
url | string |
Examples
Request
# You can also use wget
curl -X POST /{orgId}/{itemId}/jobs/{jobId}/attachments \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
-F token=string \
-F attachment=string \
-F alias=string \
-F folder=string \
-F stepId=string
Response
{
"alias": "string",
"url": "string"
}