Skip to main content
PUT
/
api
/
v2
/
external
/
orgs
/
{slug}
/
auto-top-up
Set auto top-up
curl --request PUT \
  --url https://api.example.com/api/v2/external/orgs/{slug}/auto-top-up \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true,
  "top_up_below_balance": "<string>",
  "top_up_amount": "<string>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Path Parameters

slug
string
required

Body

application/json

Set an org's auto top-up configuration.

enabled
boolean
required
top_up_below_balance
string
required

Decimal string. Do not cast to float.

top_up_amount
string
required

Decimal string. Do not cast to float.

Response

Successful Response