teams
Create a team
Create a new team for the authenticated user.
POST
/
teams
Authorizations
Authorization
string
headerrequiredDefault authentication mechanism
Body
application/json
name
string
requiredRequired string length:
1 - 32
slug
string
requiredRequired string length:
3 - 48
description
string
Maximum length:
120
Response
200 - application/json
_id
string
requiredThe unique ID of the team.
name
string
requiredThe name of the team.
logo
string | null
requiredThe logo of the team.
description
string | null
requiredThe description of the team.
Maximum length:
120
membersCount
number
requiredThe members count of the team.
meta
object
requiredThe meta of the team.
inviteCode
string
requiredThe invite code of the team.
Maximum length:
24
plan
enum<string>
requiredThe plan of the team.
Available options:
free
, pro
, business
, enterprise
billingCycleStart
number
requiredThe date and time when the billing cycle starts for the team.
usage
object
requiredThe usage of the resource of a team.
limit
object
requiredThe limit of the team resources.
createdAt
string
requiredThe date and time when the team was created.
updatedAt
string
requiredThe date and time when the team was last updated.
role
any
The role of the authenticated user in the team.
Was this page helpful?