Skip to content

Chat Bookmarks

List of valid attributes:

AttributeDescriptionSpecifics
chat_idID of the chat for a bookmarkCannot be set
user_idID of the author of a bookmarkCannot be set
updated_atTimestamp of a bookmarkWill be set automatically by using update endpoint

Update

Example response:

{
"data": {
"id": "8d0d9b6b-ae0a-4551-98ae-1d3eaca8d152",
"type": "chat_bookmark",
"attributes": {
"chat_id": "033b586e-5f17-49a8-a420-c4336ba6fc38",
"user_id": "412cc746-4ace-484a-95f3-f49951ab182f",
"updated_at": "2021-01-01T00:00:00Z"
}
}
}

This endpoint creates bookmark for a chat or updates if it already exists. Updated field is only updated_at. No request body is needed.

HTTP Request

PUT /api/v1/chats/:chat_id/bookmark