Skip to content

Add attachments

PUT
/channels/{channelId}/attachments

Authorizations

Authorization
TypeHTTP (bearer)

Parameters

Path Parameters

channelId*
Typestring
Required

Request Body

application/json
JSON
[
{
"filename": "string",
"contentType": "string",
"tumbhash": "string",
"spoiler": true
}
]

Responses

OK

application/json
JSON
[
{
"url": "string",
"id": 0
}
]

Playground

Server
Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python