cURL
curl --request POST \ --url https://api.perscom.io/{version}/attachments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "file": "<string>" } '
{ "data": { "name": "<string>", "file": "<string>", "id": 123, "filename": "<string>", "model_type": "<string>", "model_id": 123, "path": "<string>", "attachment_url": "<string>", "label": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The API version to use.
v1
v2
model
The name of the attachment.
255
The file to be uploaded. Maximum file size is 10MB.
OK
Show child attributes
Was this page helpful?