Raff Apps

Update spend cap settings

Changed on

Change the account's monthly Apps spend cap. Send only the fields you want to change; fields you leave out keep their value. An account that never set a cap is on at $50 with notify_only.

The account owners and billing contacts get an email and a dashboard notice at 75% and 90% of the cap, and again when it is reached. Then notify_only keeps apps running, and pause pauses every pay-as-you-go app until the next month or until the cap is raised or turned off. Apps on a prepaid plan keep running unless they are scaled above their plan. While apps are paused by the cap, resuming, creating, deploying, scaling up and running jobs of pay-as-you-go apps return 412.

patch/api/v1/apps/spend-settings

Request

  • Base URL
    https://api.rafftechnologies.com
  • URL
    https://api.rafftechnologies.com/api/v1/apps/spend-settings
  • Auth
    API key in header X-API-Key

Request body

enabledboolean

Turn the cap on or off.

monthly_cap_usdnumber

The monthly cap in USD, rounded to cents. To remove the cap, set enabled to false.

cap_action'notify_only' | 'pause'

What happens when the cap is reached.

Response

Updated settings

successboolean

Changes

    • warning

      the request property's max was set to 1000000.00

    • warning

      the request property's min was set to 1.00

    • warning

      added the new notify_only enum value to the / response property for the response status

    • info

      the request property became optional

    • info

      the request property became optional

    • info

      added the new notify_only enum value to the request property

    • info

      endpoint added