Attachments

post

Create an attachment

Authorizations
Body
descriptionstringOptional

The description of the file.

filestring · binaryOptional

The file to upload.

file_urlstringOptional

The URL to fetch the file from, if the file is not provided.

Responses
200Success
application/json
post
POST /attachments HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer JWT
Content-Type: multipart/form-data
Accept: */*
Content-Length: 56

{
  "description": "text",
  "file": "binary",
  "file_url": "text"
}
{
  "data": {
    "description": "text",
    "id": "text",
    "name": "text",
    "url": "text"
  },
  "request_id": "text"
}

Last updated

Was this helpful?