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

Creates a bookmark for a chat. No request body attributes are required.

POST /api/v1/chats/:chat_id/bookmark

{
"data": {
"type": "chat_bookmark",
"attributes": {}
}
}

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"
}
}
}

Updates an existing chat bookmark. Only the updated_at field can be updated.

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

{
"data": {
"type": "chat_bookmark",
"attributes": {
"updated_at": "2021-01-01T00:00:00Z"
}
}
}

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"
}
}
}