billing-usage
Set member credit limits
Plan: Enterprise
Sets or clears the monthly credit limit for 1-1000 members in one request (send a single-item list for one member). Returns HTTP 200 with a per-member result; an individual failure does not fail the request. If every member fails, returns HTTP 422 with the same per-member response body.
post/v1/workspaces/{workspace_id}/billing/credit-limits
Path parameters
workspace_idstring required
Workspace ID
Workspace ID
Request body
Example request
{
"members": [
{
"monthly_credit_limit": 500,
"user_id": "Xy7Kd2Lm9Qp4Rt6Vw8Zc1Bn3Fh5"
}
]
}Response
OK
Example response
{
"failed": 1,
"results": [
{
"error": "member not found",
"status": "error",
"user_id": "Xy7Kd2Lm9Qp4Rt6Vw8Zc1Bn3Fh5"
}
],
"successful": 2,
"total": 3
}