Parameters for attaching temporary files to a Service Desk.
const attachTemporaryFileParams: AttachTemporaryFile = { serviceDeskId: '5', attachment: [ { filename: 'example.txt', file: Buffer.from('Temporary file content'), mimeType: 'text/plain', }, ], }; Copy
const attachTemporaryFileParams: AttachTemporaryFile = { serviceDeskId: '5', attachment: [ { filename: 'example.txt', file: Buffer.from('Temporary file content'), mimeType: 'text/plain', }, ], };
The attachment(s) to be added. Can be a single Attachment object or an array of Attachment objects.
Attachment
const attachments = [ { filename: 'file1.txt', file: Buffer.from('Temporary content 1'), mimeType: 'text/plain', }, { filename: 'file2.jpeg', file: Buffer.from('Temporary content 2'), mimeType: 'image/jpeg', }, ]; Copy
const attachments = [ { filename: 'file1.txt', file: Buffer.from('Temporary content 1'), mimeType: 'text/plain', }, { filename: 'file2.jpeg', file: Buffer.from('Temporary content 2'), mimeType: 'image/jpeg', }, ];
The ID of the Service Desk to which the file will be attached. This can alternatively be a project identifier.
const serviceDeskId = '5'; Copy
const serviceDeskId = '5';
Parameters for attaching temporary files to a Service Desk.
Example