v32

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-07-312881,4162.7 MB

Update project spend limit

Create or replace a project's hard spend limit.

post/organization/projects/{project_id}/spend_limit

Path parameters

project_idstring required
Example:proj_123

The ID of the project whose hard spend limit is being managed.

Request body

threshold_amountinteger required

The hard spend limit amount, in cents.

currency'USD' required

The currency for the threshold amount. Currently, only USD is supported.

interval'month' required

The time interval for evaluating spend against the threshold. Currently, only month is supported.

Response

Hard spend limit created or replaced successfully.

object'project.spend_limit' required

The object type, which is always project.spend_limit.

threshold_amountinteger required

The hard spend limit amount, in cents.