Convert a team to a channel. Permission required: convert-team
The team's main room loses its ABAC attributes in this operation. The removal is recorded in the ABAC audit log as an abac.object.attributes.removed event for the room, with reason api and change all-deleted. If the team room has attributes, you also need the abac-management and manage-abac-admin-rooms permissions or edit-room-abac-attributes in the team room. Otherwise the request fails with error-abac-not-authorized-to-modify-room before anything changes.
Rooms that leave the team keep their attributes.
Changelog
| Version | Description |
|---|---|
| 9.0.0 | Converting a team to a channel removes the team room's ABAC attributes. |
The authToken of the authenticated user.
The userId of the authenticated user.
{
"teamId": "612b8ae982d286c3d1f5db31"
}The team ID that you want to convert to a channel.
OK
{
"success": true
}Bad Request
{
"success": false,
"error": "team-does-not-exist"
}{
"success": false,
"error": "missing-teamId-or-teamName"
}Unauthorized
{
"success": false,
"error": "You must be logged in to do this."
}