post https://api.kustomerapp.com/v1/attachments
Creates a new attachment document. Includes a temporary upload policy for uploading the file with a POST request.
Any one of the following roles is required for this endpoint:
Legacy Role | Equivalent Permission Set Role |
---|---|
org.user.note.write | org.permission.note.create |
org.user.message.write | org.permission.message.create |
Uploading attachments
You can upload attachments by sending a multi-part POST request to the URL found in the response object's meta.upload.url
property.
The request must be accompanied by the key/value pairs found in meta.upload.fields
as standard form keys. The file should be included as the last key under the name "file".