cURL
curl --request PATCH \ --url https://api.perscom.io/{version}/attachments/{attachment} \ --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
The original filename of the uploaded file.
The type of model this attachment is associated with.
The ID of the model this attachment is associated with.
The storage path of the uploaded file.
The URL to access the attachment.
The date the resource was created. Stored in UTC.
The date the resource was updated. Stored in UTC.
Was this page helpful?