Skip to main content

Creates an upload

POST 

/uploads.json

Creates an upload

Request

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

file uploaded

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
Loading...