Set or clear the owner's project budget

Changes only the budget policy, never credit grants or usage. amount_micros null clears the budget and requires continue mode. stop rejects new billable work when measured monthly usage plus reservations reaches the limit. This local setting completes atomically with its operation, audit and idempotent response; no provider job is queued. Replaying an old key returns its original snapshot without restoring its old policy.

put/v1/projects/{project_id}/credit-budget

Request

  • Base URL: https://app.ohmyho.st
  • URL: https://app.ohmyho.st/v1/projects/{project_id}/credit-budget
  • Auth: HTTP bearer

Path parameters

project_idstring required

Project identifier.

Headers

X-Request-Idstring

Optional caller-provided correlation identifier.

Idempotency-Keystring required

Identifies one mutation and its canonical request payload.

Request body

amount_microsstring required

Non-negative microcredits, at most 9223372036854775807. One credit equals 1000000 microcredits.

mode'continue' | 'stop' required

Response

Budget snapshot at the time of the original mutation.

project_idstring required
amount_microsstring required

Non-negative microcredits, at most 9223372036854775807. One credit equals 1000000 microcredits.

mode'continue' | 'stop' required
used_microsstring required

Non-negative microcredits, at most 9223372036854775807. One credit equals 1000000 microcredits.

reserved_microsstring required

Non-negative microcredits, at most 9223372036854775807. One credit equals 1000000 microcredits.

period_startstring date-time required
period_endstring date-time required
as_ofstring date-time required

Changes

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