Groups
Create group
Changed onThis endpoint creates a new group. Corresponds to liveblocks.createGroup.
post/groups
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/groups
- Auth: none declared
Request body
Example request
{
"id": "engineering",
"memberIds": [
"alice",
"bob"
],
"organizationId": "org_123456789",
"scopes": {
"mention": true
}
}Response
Success. Returns the created group.
Example response
{
"type": "group",
"id": "engineering",
"organizationId": "org_123456789",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z",
"scopes": {
"mention": true
},
"members": [
{
"id": "alice",
"addedAt": "2024-01-15T10:30:00.000Z"
},
{
"id": "bob",
"addedAt": "2024-01-16T09:00:00.000Z"
}
]
}Changes
- breaking
request body became required
- breaking
the
request property const valuetruewas added - info
the
response property const valuetruewas added for the status
- breaking
- breaking
added the new required request property
- warning
removed the request property
- info
api operation id
post-groupsremoved and replaced withcreate-group - info
the
response property const valuegroupwas added for the status - info
removed the
groupenum value from theresponse property for the response status
- breaking