Create a New Attachment

Create a new attachment in your SysAid account. This is step 3 of 3 to add an attachment. Before this call, call POST /attachments/presigned-url and upload the file to the presigned URL that it returns. Send the path and generatedFileName that POST /attachments/presigned-url returned. For a service record, you must have the permission to edit the service record.

Body Params

The metadata of the new attachment.

string
required

The file extension of the attachment, for example "png" or "jpg".

string
required
length between 1 and 20

The identifier of the source of the attachment, for example "service_request".

integer
required

The unique identifier of the resource that the attachment belongs to, for example the ID of a service record.

string
enum
required

The type of the resource that the attachment belongs to.

Allowed:
integer
required

The unique identifier of the sub-resource, such as a note, that the attachment belongs to.

string
enum
required

The type of the sub-resource that the attachment belongs to.

integer
required

The size of the attachment file in bytes.

string
required

The SHA-256 checksum of the attachment file. If the resource already has an attachment with the same checksum, POST /attachments/presigned-url returns 400.

string
required
length ≤ 50

The original file name of the attachment.

boolean
Defaults to true

The option to show the attachment in the list of attachments of the resource. The default is "true".

string

The path where SysAid stores the attachment file.

string

The unique file name that SysAid generated for the attachment file.

Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json