Upsert user AI budget override
PUT
CoderSessionTokenheader
Coder-Session-Token<token>user*stringUser ID, username, or me
Upsert user AI budget override request
application/json- body
group_id*stringGroupID is the group the user's spend is attributed to. The user must be a member of this group.
Format
uuidspend_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-timeuser_id?stringFormat
uuidThe samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X PUT \ "$CODER_URL/api/v2/users/{user}/ai/budget/override" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "group_id": "306db4e0-7449-4501-b76f-075576fe2d8f"}'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", "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"}