Skip to main content

Request

PATCH /api/teams/:slug
Rename a team or change its slug. Requires owner or admin role.

Path parameters

ParameterTypeDescription
slugstringCurrent team slug

Body

{
  "name": "New Team Name",
  "slug": "new-slug"
}
FieldTypeRequiredDescription
namestringNoNew team name. Max 50 characters.
slugstringNoNew team slug. Must be globally unique.

Example

curl -X PATCH https://lazyraccoon.dev/api/teams/my-team \
  -H "Authorization: Bearer lr_your_key" \
  -H "Content-Type: application/json" \
  -d '{"name": "Renamed Team"}'

Response

{
  "id": "team-uuid",
  "name": "Renamed Team",
  "slug": "my-team"
}