Skip to main content
PATCH
/
api
/
teams
/
{id}
Update team
curl --request PATCH \
  --url https://api.example.com/api/teams/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Engineering",
  "slug": "engineering"
}
'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "slug": "<string>",
    "created_by": "<string>",
    "is_active": true,
    "created_at": "<string>",
    "updated_at": "<string>",
    "member_count": 123
  }
}

Authorizations

Authorization
string
header
required

Auth0 JWT access token

Path Parameters

id
string
required

Team ID

Pattern: ^\d+$
Example:

"1"

Body

application/json
name
string

Display name for the team

Required string length: 1 - 200
Example:

"Engineering"

slug
string

URL-friendly identifier (lowercase alphanumeric + hyphens)

Required string length: 1 - 100
Pattern: ^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$
Example:

"engineering"

Response

Team updated

data
object
required