Chat Bookmarks
List of valid attributes:
Attribute | Description | Specifics |
---|---|---|
chat_id | ID of the chat for a bookmark | Cannot be set |
user_id | ID of the author of a bookmark | Cannot be set |
updated_at | Timestamp of a bookmark | Will 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