Update team

Update a team by slug.

Endpoint

PUT /api/v1/teams/{team_slug}
Team Owner

Request

JSON body (optional): name, is_active.

Usage

curl \
  --request PUT \
  --header "Authorization: Bearer $PEARING_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{"name": "Platform Engineering"}' \
  "$PEARING_API_URL/v1/teams/platform"

Success

200 OK with updated team.

{
  "uuid": "...",
  "slug": "platform",
  "name": "Platform Engineering"
}

Errors

  • 403 Forbidden when caller requests a disallowed update.
  • 404 Not Found when team slug does not exist.
  • 409 Conflict for duplicate team slug.

Common auth errors are documented on the API overview page.