Appearance
Create DM channel
POST
/channels/{partnerId}
Authorizations
Authorization
TypeHTTP (bearer)
Parameters
Path Parameters
partnerId*
Typeinteger
Requiredformat
"int64"Request Body
application/json
JSON
{
"displayName": "string",
"name": "string",
"type": 0,
"public": true
}
Responses
OK
application/json
JSON
{
"id": 0,
"displayName": "string",
"name": "string",
"avatar": {
"id": 0,
"uuid": "string",
"filename": "string",
"tumbhash": "string"
},
"banner": {
"id": 0,
"uuid": "string",
"filename": "string",
"tumbhash": "string"
},
"type": 0,
"flags": 0,
"memberCount": 0,
"owner": {
"id": 0,
"user": {
"id": 0,
"avatar": {
"id": 0,
"uuid": "string",
"filename": "string",
"tumbhash": "string"
},
"banner": {
"id": 0,
"uuid": "string",
"filename": "string",
"tumbhash": "string"
},
"displayName": "string",
"username": "string",
"status": 0,
"statusUpdatedAt": 0,
"createdAt": 0
},
"userId": 0,
"channel": "[Circular Reference]",
"channelId": 0,
"permissions": 0,
"joinedAt": 0
},
"ownerId": 0,
"createdAt": 0,
"lastMessage": {
"id": 0,
"content": "string",
"author": null,
"authorId": 0,
"channel": null,
"channelId": 0,
"attachments": [
{
"id": 0,
"uuid": "string",
"filename": "string",
"contentType": "string",
"flags": 0
}
],
"createdAt": 0
}
}