Gateway

Create a department budget

Changed on

Creates a daily, weekly, or monthly spend budget for one department. Once the department has used it, API-key requests that count toward the department return 429 key_limit_exceeded until the budget resets. Batch jobs, realtime sessions and OAuth requests are not blocked. If the budget check is briefly unavailable, requests are allowed rather than refused. Owners and admins get a mobile push at about 80% and at 100%.

post/department-budgets

Request

  • Base URL
    https://api.phaseo.app/v1
  • URL
    https://api.phaseo.app/v1/department-budgets
  • Auth
    HTTP bearer

Request body

department_idstring uuid required
interval'daily' | 'weekly' | 'monthly' required
limitnumber double required

Response

Department budget created

Changes