This route requires Bearer token authentication! You MUST have PIN_MESSAGES permission for this route.

Request

PUT https://localhost:8989/api/channels/{channelID}/pins

Path parameters

Parameter name Value Description Additional
channelID string Required

Request body

The request body takes a complete Message History Request resource, containing the following writable properties:

{
    "messageID": "string",
    "pinned": "boolean"
}

Properties

Name Type Description Additional
messageID string
pinned boolean

0 or 1, I think. or maybe true/false works too idk

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK

a GenericMessage data object

GenericMessage

Explore this API

channelID
body
Request Content-Type
Response Content-Type
Try it out!