Skip to main content
PATCH
/
teams
/
{teamIdOrSlug}
cURL
curl --request PATCH \
  --url https://api.youappz.dev/teams/{teamIdOrSlug} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "Our mission is to make cloud computing accessible to everyone",
  "emailDomain": "example.com",
  "name": "my team",
  "slug": "my-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.

Path Parameters

teamIdOrSlug
string
required

The Team identifier/slug to perform the request on behalf of.

Minimum string length: 3
Example:

"team_LLHUOMOoDlqOp8wPE4kFo9pE"

Body

application/json
description
string

A short text that describes the team.

Maximum string length: 140
Example:

"Our mission is to make cloud computing accessible to everyone"

emailDomain
string
Example:

"example.com"

name
string

The name of the Team

Maximum string length: 256
Example:

"my team"

slug
string

A new slug for the team

Example:

"my-team"

Response

The updated Team

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