Last updated 2 months ago
Was this helpful?
Create an attachment
The description of the file.
The file to upload.
The URL to fetch the file from, if the file is not provided.
curl -L \ --request POST \ --url 'https://api.usepylon.com/attachments' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: multipart/form-data' \ --form 'description=text' \ --form 'file=binary' \ --form 'file_url=text'
{ "data": { "description": "text", "id": "text", "name": "text", "url": "text" }, "request_id": "text" }