Create a team
post/api/v1/teamsCreates a new team and returns the created team's ID upon a successful API call.
Code snippet
curl -X 'POST' \
'https://{yourdomain}/api/v1/teams' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}' \
-H 'Content-Type: application/json-patch+json; x-api-version=1.0' \
-d '{
"data": {
"name": "Enterprise Sales Team",
"description": "Manages enterprise accounts and oversees strategic sales opportunities.",
"users": [
{
"id": 1
},
{
"id": 2
}
]
}
}'
Request body
| namestringRequired | Unique name for the team. Used for identification and display purposes. | ||
| descriptionstring | Detailed description explaining the team's purpose and responsibilities. | ||
usersarrayRequired | List of users to be assigned to the team initially.
|
Example response
201 Created
{
"message": "Team created successfully.",
"data": {
"id": 12
}
}