v55

latestOpenAPI 3.0.3agplraw.githubusercontent.com2026-08-01155431.3 MB
chat

Pin a message in a chat as a moderator

Required capability: pinned-messages

post/ocs/v2.php/apps/spreed/api/{apiVersion}/chat/{token}/{messageId}/pin

Path parameters

apiVersion'v1' required
tokenstring required
messageIdinteger required

ID of the message

Headers

x-nextcloud-federationstring

Set to 1 when the request is performed by another Nextcloud Server to indicate a federation request

OCS-APIRequestboolean required

Required to be true for the API request to pass

Request body

pinUntilinteger

Unix timestamp when to unpin the message

Response

Message was pinned successfully