Mark thread as resolved
Changed onThis endpoint marks a thread as resolved. The request body must include a userId to identify who resolved the thread. Returns the updated thread. Corresponds to liveblocks.markThreadAsResolved.
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/rooms/{roomId}/threads/{threadId}/mark-as-resolved
- Auth: none declared
Path parameters
ID of the room
ID of the thread
Request body
Example request
{
"userId": "alice"
}Response
Success. Returns the updated thread.
Example response
{
"type": "thread",
"id": "th_abc123",
"roomId": "my-room-id",
"comments": [
{
"type": "comment",
"threadId": "th_abc123",
"roomId": "my-room-id",
"id": "cm_abc123",
"userId": "alice",
"createdAt": "2022-07-13T14:32:50.697Z",
"body": {
"version": 1,
"content": []
},
"metadata": {},
"reactions": [],
"attachments": []
}
],
"createdAt": "2022-07-13T14:32:50.697Z",
"updatedAt": "2022-07-13T14:32:50.697Z",
"metadata": {
"color": "blue"
},
"resolved": false,
"visibility": "public"
}Changes
- info
added the required property
to the response with the status
- info
- breaking
added required request body
- info
api operation id
post-rooms-roomId-threads-threadId-mark-as-resolvedremoved and replaced withmark-thread-as-resolved - info
the response property
///became required for the status - info
the response property
///became required for the status - info
the response property
//became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the
response's property default valuecommentwas removed for the status - info
added 'propertyNames' constraint to the
//response property for the status - info
added 'propertyNames' constraint to the
response property for the status - info
added the required property
//to the response with the status - info
added the required property
//to the response with the status - info
the response required property
//became not read-only for the status
- breaking