Edit thread metadata
Changed onThis endpoint edits the metadata of a thread. The metadata is a JSON object that can be used to store any information you want about the thread, in string, number, or boolean form. Set a property to null to remove it. Corresponds to liveblocks.editThreadMetadata.
metadata supports maximum 50 entries. Key length has a limit of 40 characters maximum. Value length has a limit of 4000 characters maximum for strings.
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/rooms/{roomId}/threads/{threadId}/metadata
- Auth: none declared
Path parameters
ID of the room
ID of the thread
Request body
Example request
{
"metadata": {
"color": "blue"
},
"userId": "alice",
"createdAt": "2023-07-13T14:32:50.697Z"
}Response
Success. Returns the updated metadata.
Custom metadata attached to a thread. Supports maximum 50 entries. Key length has a limit of 40 characters maximum. Value length has a limit of 4000 characters maximum for strings.
Example response
{
"color": "blue",
"age": 25
}Changes
- breaking
request body became required
- info
api operation id
post-rooms-roomId-threads-threadId-metadataremoved and replaced withedit-thread-metadata - info
added 'propertyNames' constraint to the response body for the status
- breaking
- warning
removed the optional property
from the response with the status
- warning