Skip to main content
PATCH
/
api
/
v1
/
admin
/
teams
/
{slug}
/
strategy-config
Admin Update Team Strategy Config
curl --request PATCH \
  --url https://api.example.com/api/v1/admin/teams/{slug}/strategy-config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "strategy_generation_template": "<string>",
  "strategy_output_spec_slug": "<string>",
  "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

Partial update of a team's strategy-generation config.

Both fields are optional (partial update) and clearable:

  • Empty string on strategy_generation_template clears it (NULL), letting the loader fall back to the on-disk file or generic spec.
  • Empty string on strategy_output_spec_slug clears the FK.

The spec is referenced by slug rather than UUID so the admin UI can use a stable, human-readable handle. The route resolves the slug to an id on the way in.

strategy_generation_template
string | null
Maximum string length: 50000
strategy_output_spec_slug
string | null
Maximum string length: 100
note
string | null
Maximum string length: 500

Response

Successful Response