Files
APIs for adding file attachments to accounts
post
Upload files to an account
Authorizations
Path parameters
idstringRequired
The ID or external ID of the account to upload files to.
Body
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
400Error
application/json
404Error
application/json
500Error
application/json
post
POST /accounts/{id}/files HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 35
{
"file": "binary",
"file_url": "text"
}
{
"data": [
{
"description": "text",
"id": "text",
"name": "text",
"url": "text"
}
],
"request_id": "text"
}
Last updated
Was this helpful?