Create an Attachment
POST/v1/attachments
Create an Attachment
Request
- multipart/form-data
Body
required
Attachment data to be used for creation
title string
The title or name of the file.
file binaryrequired
The file upload to be stored as an attachment.
Responses
- 201
- 400
- 401
- 403
- 422
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
id integer
title string
file_type string
filename string
This is the uploaded filename.
file_url string
The file URL on Storage.
thumbnail_url string
Images Only Auto-generated URL that utilizes Cloudinary transformations to give a thumbnail of the image attachment, 150px by 150px dimensions.
preview_url string
Images Only Similar to thumbnail URL, but no width specified, only a reduced height to produce a smaller-sized image that can be suitable for previewing the attachment in a modal before the full file is downloaded.
{
"id": 0,
"title": "string",
"file_type": "string",
"filename": "string",
"file_url": "string",
"thumbnail_url": "string",
"preview_url": "string"
}
Bad Request
Unauthenticated
Forbidden
Unprocessable Entity
Server Error
Loading...