Creates an upload
POST/uploads.json
Creates an upload
Request
- multipart/form-data
Body
type stringrequired
Possible values: [avatar
, profile_background
, card_background
, custom_emoji
, composer
]
user_id integerrequired
required if uploading an avatar
synchronous booleanrequired
Use this flag to return an id and url
file binaryrequired
Responses
- 200
file uploaded
- application/json
- Schema
- Example (from schema)
Schema
id integerrequired
url stringrequired
original_filename stringrequired
filesize integerrequired
width integerrequired
height integerrequired
thumbnail_width integerrequired
thumbnail_height integerrequired
extension stringrequired
short_url stringrequired
short_path stringrequired
retain_hours stringnullrequired
human_filesize stringrequired
dominant_color stringnullrequired
{
"id": 0,
"url": "string",
"original_filename": "string",
"filesize": 0,
"width": 0,
"height": 0,
"thumbnail_width": 0,
"thumbnail_height": 0,
"extension": "string",
"short_url": "string",
"short_path": "string",
"human_filesize": "string"
}
Loading...