merjax_set_token_bucket
Set the daily model-spend bucket of one of your personal access tokens: daily_cents (1–1000000; 0 = the platform default; -1 = no bucket) or daily_usd ("2.50", "default", "none"). The call that would cross the bucket is refused and the token suspends itself until resumed. Another person's token is not found; a canary token is refused. Safe to retry: the same figure again is unchanged. Needs user scope. Audit-logged. Returns {tokenId, name, dailyCents, bucketCents, bucket, effect}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_id | Yes | The personal access token's id (merjax_list_tokens, GET /api/v2/user/tokens) | |
| daily_usd | No | Bucket as a person types it: USD a day with cents ("2.50"), "default" or blank for the platform default, "none" for no bucket | |
| daily_cents | No | Bucket in US cents a day, 1–1000000; 0 = the platform default; -1 = no bucket. Alternative: daily_usd |