Enterprise

Upsert user AI budget override

Changed on
put/api/v2/users/{user}/ai/budget/override

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v2/users/{user}/ai/budget/override
  • Auth
    API key in header Coder-Session-Token

Path parameters

userstring required

User ID, username, or me

Request body

group_idstring uuid required

GroupID is the group the user's spend is attributed to. The user must be a member of this group.

spend_limit_microsinteger

SpendLimitMicros must not exceed MaxAISpendLimitMicros.

Response

OK

created_atstring date-time
group_idstring uuid
spend_limit_microsinteger
updated_atstring date-time
user_idstring uuid

Changes