Skip to content

addAttachmentsLinked

POST
Use dark colors for code blocksCopy
1
/{orgId}/{itemId}/jobs/{jobId}/attachmentslinked
Add linked attachments to a job

Add linked attachments to a job to provide additional or support information related to the job. Linked attachments can be links to a file on a local or shared file system or a URL. The jobUpdateAttachments privilege is required to add an attachment to a job.

Query parameters

NameTypeRequired
tokenstring¦null

Body parameters

Supported content types: application/json

Type: JobAttachmentLinkedBody

Array of linked attachments to assoicate with the job

NameTypeRequired
attachments[JobAttachmentLinked]
stepIdstring¦null

Path parameters

NameTypeRequired
jobIdstring
orgIdstring
itemIdstring

Response status

StatusMeaningDescriptionSchema
200OK

List of added attachments

inline
400Bad Request

error

WorkflowExceptionDTO

Response details

Status Code 200

JobAttachmentLinkedResults

NameTypeRequiredDescription
attachments[JobAttachmentLinkedResult]

Examples

Request

Use dark colors for code blocksCopy
1
2
3
4
5
# You can also use wget
curl -X POST /{orgId}/{itemId}/jobs/{jobId}/attachmentslinked \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <YOUR_TOKEN>' \
  --data '{"attachments":[{"url":"string","alias":"string","folder":"string"}],"stepId":"string"}'

Response

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
{
  "attachments": [
    {
      "alias": "string",
      "attachmentId": "string"
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.