discourse/spec/requests/api/schemas/json/upload_create_request.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
565 B
JSON
Raw Normal View History

{
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"avatar",
"profile_background",
"card_background",
"custom_emoji",
"composer"
]
},
"user_id": {
"type": "integer",
"description": "required if uploading an avatar"
},
"synchronous": {
"type": "boolean",
"description": "Use this flag to return an id and url"
},
"file": {
"type": "string",
"format": "binary"
}
},
"required": [
"type"
]
}