Skip to main content
PATCH
/
subscriptions
/
{id}
Update subscription
curl --request PATCH \
  --url https://api.lava.so/v1/subscriptions/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "auto_top_up_bundle_id": "<string>"
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer token authentication used for standard API calls. Format: 'Bearer YOUR_API_KEY'

Path Parameters

id
string
required

Subscription ID

Body

application/json

Update a subscription.

auto_top_up_bundle_id
string | null
required

ID of a credit bundle to auto-purchase when subscription credit runs out. Must belong to the same subscription configuration. Set to null to disable auto top-up.

Response

Subscription updated

success
boolean