Convert Team to Channel

Prev Next
Post
/api/v1/teams.convertToChannel

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.
Header parameters
X-Auth-Token
stringRequired

The authToken of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The userId of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ
Body parameters
Example
{
  "teamId": "612b8ae982d286c3d1f5db31"
}
object
teamId
string Required

The team ID that you want to convert to a channel.

Responses
200

OK

Success
{
  "success": true
}
object
success
boolean
400

Bad Request

Invalid Team Id
{
  "success": false,
  "error": "team-does-not-exist"
}
Team Id or Team name is required
{
  "success": false,
  "error": "missing-teamId-or-teamName"
}
object
success
boolean
error
string
401

Unauthorized

Authorization Error
{
  "success": false,
  "error": "You must be logged in to do this."
}
object
success
boolean
error
string