Create team

Create a team and assign current user as owner.

Endpoint

POST /api/v1/teams
Authenticated

Request

JSON body: name, slug.

Usage

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

Success

201 Created with team record.

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

Errors

  • 409 Conflict for duplicate team slug.

Common auth errors are documented on the API overview page.