Post
/api/v1/groups.convertToTeam
Convert a private channel to a team. Permissions required: create-team
, edit-room
Changelog
Version | Description |
---|---|
3.13.0 | Added |
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
object
teamName
string
Enter the team name. This parameter is required if teamId
is not provided.
teamId
string
Enter the team ID. This parameter is required if teamName
is not provided.
roomsToRemove
Array of string
The room IDs to delete along with the team.
string
Example8dugqGhuRvCBLdZft
Responses
200
400
401
OK
object
team
object
_id
string
name
string
type
integer
createdAt
string
createdBy
object
_updatedAt
string
roomId
string
success
boolean