Upsert group AI budget
PUT
CoderSessionTokenheader
Coder-Session-Token<token>group*stringGroup ID
Format
uuidUpsert group AI budget request
application/json- body
spend_limit_micros?integerSpendLimitMicros must not exceed MaxAISpendLimitMicros.
Range
0 <= valueOK
application/json- response
created_at?stringFormat
date-timegroup_id?stringFormat
uuidspend_limit_micros?integerupdated_at?stringFormat
date-timeThe 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"}