POST
/
{version}
/
attachments
curl --request POST \
  --url https://api.perscom.io/{version}/attachments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>"
}'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

version
enum<string>
default:v2
required

The API version to use.

Available options:
v1,
v2

Query Parameters

include
enum<string>
Available options:
model

Body

application/json
name
string
required
file
file
required

The file to be uploaded.

Response

201
application/json
OK
data
object