Skip to main content

Update subscription

Route

PUT
/api/v1/subscriptions/:id

Usage

LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request PUT "$LAGO_URL/api/v1/subscriptions/:id" \
--header "Authorization: Bearer $API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"subscription": {
"name": "subscription_name",
"subscription_date": "2022-08-08"
}
}'

Arguments

{
"subscription": {
"name": "subscription_name",
"subscription-date": "2022-08-08"
}
}
AttributesTypeDescription
nameString      OptionalDisplay name of the subscription.
subscription_dateString      OptionalStart date of the subscription. Can only be modified for pending subscriptions that have not yet started.

Responses

The subscription was successfully updated

Returns a subscription object.