Skip to content

Teams

List of valid attributes:

AttributeDescriptionSpecifics
account_idID of the account the team belongs toCannot be set
discarded_atNull or timestamp of removalCannot be set
nameName of the teamMust be set, Must be unique within account
parent_team_idID of parent teamMust be set on all non-default teams

The following relationships can be included in requests:

RelationshipType
parent_teambelongs_to
team_membershipshas_many

Meta data: Permissions

GroupDescription
actionsContains permissions to edit or delete a team
team_membershipsReturns permissions if current user can create, edit or delete roles of users inside team

Create

Example request:

{
"data": {
"type": "team",
"attributes": {
"name": "Team"
}
}
}

Example response:

{
"data": {
"id": "3aab0a84-8ed3-4ddf-8572-f1799bb60e0a",
"type": "team",
"attributes": {
...
}
}
}

This endpoint creates a team.

HTTP Request

POST /api/v1/teams

Update

Example request:

{
"data": {
"type": "team",
"attributes": {
"name": "Updated Team"
}
}
}

Example response:

{
"data": {
"id": "3aab0a84-8ed3-4ddf-8572-f1799bb60e0a",
"type": "team",
"attributes": {
...
}
}
}

This endpoint updates a team.

HTTP Request

PUT /api/v1/teams/:team_id

URL Parameters

ParameterDescription
team_id ID of the team to be updated

Show

Example response:

{
"data": {
"id": "3aab0a84-8ed3-4ddf-8572-f1799bb60e0a",
"type": "team",
"attributes": {
...
}
}
}

This endpoint returns a team.

HTTP Request

GET /api/v1/teams/:team_id

URL Parameters

ParameterDescription
team_idThe ID of the team to return

List

Example response:

{
"data": [
{
"id": "3aab0a84-8ed3-4ddf-8572-f1799bb60e0a",
"type": "team",
"attributes": {
...
}
},
{
...
}
]
}

This endpoint returns teams.

HTTP Request

GET /api/v1/teams

Delete

Example response:

{
"data": {
"id": "3aab0a84-8ed3-4ddf-8572-f1799bb60e0a",
"type": "team",
"attributes": {
...
}
}
}

This endpoint deletes a team.

HTTP Request

DELETE /api/v1/teams/:team_id

URL Parameters

ParameterDescription
team_idThe ID of the team to delete