Docs
Workspace Settings

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.

PATCH
/v2/workspaces/quotas
quotasarray<UpdateQuotaItemDto>

Response Body

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"
  }
}