palbaseDocs

Palbase ai · API

PUT/ai/users/{user_id}/quota

Set a user's direct AI quota override or block state

Set a user's direct AI quota override or block state.

Called by your server, with the project's secret key.

Path

user_idstring · requiredEnd-user identifier.

Request body

blockedboolean · optionalBlock or unblock this user.
max_usd_daynumber · optionalDaily USD cap override. 0 is no spending: the user's AI is off in the project, as when blocked.
max_usd_monthnumber · optionalMonthly USD cap override. 0 is no spending: the user's AI is off in the project, as when blocked.
max_rpminteger · optionalRequests-per-minute cap override.
notestring · optionalOptional operator note.
curl
curl -X PUT "https://<your-ref>.palbase.studio/ai/users/<user_id>/quota" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"blocked":false,"max_usd_day":0,"max_usd_month":0,"max_rpm":0,"note":"string"}'

Responses

200Updated user quota

400HTTP 400 error

401HTTP 401 error

403HTTP 403 error

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation PutUserQuota of ai's contract.