Skip to content

Update message fields​

PATCH
/api/v1/messages/{id}

Sets whichever of is_read, is_starred and tags the body names and leaves the others alone. The body must be sent as Content-Type: application/json. Unknown fields are ignored, and {} is accepted as a no-op. Each field that was set is announced on the WebSocket (message:read, message:starred, message:tags); a rejected update announces nothing.

Request Body​

application/json
JSON
{
  
"is_read": true,
  
"is_starred": true,
  
"tags": [
  
  
"string"
  
]
}

Responses​

Update applied. No body; re-read the message to see its new state.

Samples​

Powered by VitePress OpenAPI

Released under the MIT / Apache 2.0 License.