Keys

Update a key

Rename, move project, change scopes, pause/resume (disabled), and — owner only — set the spend cap or expiry (expiresAt). A revoked key rejects disabled. Moving a key to another project is a person’s act in the console (403 for a key): the tools a key may use without approval depend on its project. An app’s own key moves only with its app (409 — move the app instead). Read the key back with GET to see the result.

patch/client/keys/{id}

Request

  • Base URL: https://api.roar-ai.com
  • URL: https://api.roar-ai.com/client/keys/{id}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Request body

namestring nullable
projectIdstring uuid nullable
scopesstring[]
expiresAtstring date-time nullable
disabledboolean

Pause or resume the key

spendLimitUsdnumber nullable
budgetPeriod'day' | 'week' | 'month' | 'total'

Response

Updated

okboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.