Skip to content
Skip to Content
Coder Docs

Upsert group AI budget

PUT
/api/v2/groups/{group}/ai/budget

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

group*string

Group ID

Formatuuid

Request Body

Upsert group AI budget request

application/json
  1. body
spend_limit_micros?integer

SpendLimitMicros must not exceed MaxAISpendLimitMicros.

Range0 <= value

Response Body

OK

application/json
  1. response
created_at?string
Formatdate-time
group_id?string
Formatuuid
spend_limit_micros?integer
updated_at?string
Formatdate-time

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X PUT \	"$CODER_URL/api/v2/groups/{group}/ai/budget" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "spend_limit_micros": 0}'
Example Response200
{  "created_at": "2019-08-24T14:15:22Z",  "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f",  "spend_limit_micros": 0,  "updated_at": "2019-08-24T14:15:22Z"}