POST
/{orgId}/{itemId}/jobs/{jobId}/attachments/{attachmentId}
Update alias and folder names for existing attachments associated with a job. The jobUpdateAttachments privilege is required to update attachments on a job.
Body parameters
Supported content types: multipart/form-data
Name | Type | Required | Description |
---|---|---|---|
token | string | ||
alias | string | Updated display name for the attachment. Alias cannot be set to null. | |
folder | string | New folder under which the attachment will be stored. |
Path parameters
Name | Type | Required |
---|---|---|
job | string | |
attachment | string | |
org | string | |
item | string |
Response status
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | success | Success |
400 | Bad Request | error | WorkflowExceptionDTO |
Examples
Request
# You can also use wget
curl -X POST /{orgId}/{itemId}/jobs/{jobId}/attachments/{attachmentId} \
-H 'Content-Type: multipart/form-data' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
-F token=string \
-F alias=string \
-F folder=string
Response
{
"success": true
}