POST
/
api
/
teams
curl --location --request POST 'http://localhost:3005/api/teams' \
--header 'Accept: application/json' \
--header 'Authorization: Token <token>' \
--data '{
  "name": "ACME",
  "slug": "acme"
}'
{
  "data": {
    "id": 1,
    "name": "ACME",
    "slug": "acme",
    "logo": null,
    "createdAt": "2023-07-02T16:07:08.469Z",
    "updatedAt": "2023-07-02T16:45:32.600Z"
  }
}

Body

name
string
required

Team name

slug
string
required

Team slug. It should be unique across all teams.