v1

latestOpenAPI 3.1.02026-07-2489171167.4 KB
Attachments

Create new attachment

Finalize new attachment creation after the initial call to generate_presigned_url. The is the 3rd call made by the client in the creation flow (1st is generating a presigned URL, 2nd - uploading the object to storage using the presigned URL).

post/attachments

Request body

extensionstring required

An Attachment extension (e.g. png, jpg)

sourcestring required

A source identifier (service_request)

resourceIdinteger required

The id of a resource, to which the attachment is added

resourceType'SR' | 'TEMPLATE' | 'AI_CHAT' | 'AI_DATASET' required

The resource type tells to which resource the attachment is attached to. All SR types are mapped to SR.

subResourceIdinteger required

The id of a subresource, to which the attachment is added

subResourceType'TEMP' | 'SR' | 'NOTE' | 'MESSAGE' | 'SOLUTION' | 'RESOLUTION' | 'DESCRIPTION' | 'AI_CHAT_MESSAGE' | 'AI_DATASET_REC' required
sizeInBytesinteger required

Size of the added attachment is bytes

checksumstring required

The checksum that will be used for detecting an identical image in the same ticket of the same type

originalNamestring required

Attachment file name

visibilityboolean

Defines whether the added attachment should be visible after creation

pathstring

Path under which the attachment will be stored (e.g. on S3)

generatedFileNamestring

Unique attachment file identifier

Response

Attachment successfully created

presignedUrlstring uri required