Zum Inhalt springen

Teams

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

List of valid attributes:

Attribute Description Specifics
account_id ID of the account the team belongs to Cannot be set
discarded_at Null or timestamp of removal Cannot be set
name Name of the team Must be set, Must be unique within account
parent_team_id ID of parent team Must be set on all non-default teams

The following relationships can be included in requests:

Relationship Type
parent_team belongs_to
team_memberships has_many

Meta data: Permissions

Group Description
actions Contains permissions to edit or delete a team
team_memberships Returns permissions if current user can create, edit or delete roles of users inside team

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.

POST /api/v1/teams

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.

PUT /api/v1/teams/:team_id

Parameter Description
team_id  ID of the team to be updated

Example response:

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

This endpoint returns a team.

GET /api/v1/teams/:team_id

Parameter Description
team_id The ID of the team to return

Example response:

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

This endpoint returns teams.

GET /api/v1/teams

Example response:

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

This endpoint deletes a team.

DELETE /api/v1/teams/:team_id

Parameter Description
team_id The ID of the team to delete