Update workspace budgets
Sets dailyWarmupBudget for the listed workspaces only; every other workspace keeps its budget. The organization's cap is checked once across the whole request, before anything is written, so one call can move budget between workspaces (lower one, raise another) even when the organization is fully allocated. A lowered budget applies immediately: a workspace that has already sent more today than its new budget stops for the rest of the day. Requires a personal (ti_pk_) key whose creator is an organization owner.
curl -X PATCH "https://lynx-api.trulyinbox.com/v2/workspaces/quotas" \ -H "Content-Type: application/json" \ -d '{ "quotas": [ { "workspaceId": 0, "dailyWarmupBudget": 0 } ] }'{
"data": [
{
"workspaceId": 0,
"workspaceName": "string",
"dailyWarmupBudget": 0
}
],
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "invalid_request",
"message": "string",
"details": {},
"retry_after": 34
},
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "invalid_request",
"message": "string",
"details": {},
"retry_after": 34
},
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}List workspace budgetsGET
The organization's total daily warmup cap (`orgLimit`; `null` means unlimited, not zero), how much of it is allocated, and each workspace's `dailyWarmupBudget`. Requires a personal (`ti_pk_`) key whose creator is an organization owner.
Get workspaceGET
The workspace addressed by the path, with its daily warmup budget. `quota` is omitted for legacy workspaces that were never allocated one.