Skip to main content
PATCH
/
api
/
v1
/
admin
/
teams
/
{slug}
/
pricing
Admin Update Team Pricing
curl --request PATCH \
  --url https://api.example.com/api/v1/admin/teams/{slug}/pricing \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tiers": {},
  "note": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.aitasker.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

Body

application/json

Replace a team's tier pricing structure.

The tiers JSONB column accepts any shape; we validate the minimum here — each tier must have a numeric price. Tier names are free-form to support bespoke team compositions beyond starter/professional/enterprise.

tiers
Tiers · object
required

tier-name → tier-config mapping

note
string | null
Maximum string length: 500

Response

Successful Response