Praecise Shield/ Reference/ Budgets and kill switch

Set a site's cost budget

put/sites/{site}/budget

Before you call

Credential
Authorization: Bearer $KEY

Parameters

  • sitestringrequired
    In the path. The site key (ps_…).

Request bodyapplication/json, required

  • windowSecondsinteger
    At least 10. At most 86400.
  • limitsobject
    Per client.
    • tokensinteger
      At least 0.
    • dbMsinteger
      Database milliseconds. At least 0.
    • centsinteger
      Money in minor units. At least 0.
  • agentLimitsobject
    Per signed agent; the same as limits when absent.
    • tokensinteger
      At least 0.
    • dbMsinteger
      Database milliseconds. At least 0.
    • centsinteger
      Money in minor units. At least 0.
  • challengeAtnumber
    At least 0.5. At most 1.
  • routesobject
    'METHOD /path' or '/path'; a trailing * is a prefix.

Responses

  • 200application/json
    • sitestring
    • budgetobject
      • windowSecondsinteger
        At least 10. At most 86400.
      • limitsobject
        Per client.
        • tokensinteger
          At least 0.
        • dbMsinteger
          Database milliseconds. At least 0.
        • centsinteger
          Money in minor units. At least 0.
      • agentLimitsobject
        Per signed agent; the same as limits when absent.
        • tokensinteger
          At least 0.
        • dbMsinteger
          Database milliseconds. At least 0.
        • centsinteger
          Money in minor units. At least 0.
      • challengeAtnumber
        At least 0.5. At most 1.
      • routesobject
        'METHOD /path' or '/path'; a trailing * is a prefix.

This page as Markdown