Skip to main content
POST
/
teams
cURL
curl --request POST \
  --url https://api.youappz.dev/teams \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "slug": "a-random-team",
  "name": "A Random Team"
}
'
{
  "id": "<string>",
  "slug": "<string>",
  "name": "<string>",
  "avatar": "<string>",
  "createdBy": 123,
  "createdAt": 123,
  "updatedAt": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
slug
string
required

The desired slug for the Team

Maximum string length: 48
Example:

"a-random-team"

name
string

The desired name for the Team. It will be generated from the provided slug if nothing is provided

Maximum string length: 256
Example:

"A Random Team"

Response

The team was created successfully

id
string
required
slug
string
required
name
string | null
required
avatar
string | null
required
createdBy
number | null
required
createdAt
number
required
updatedAt
number
required