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_at": "2022-08-08T00:00:00Z"
}
}'

Arguments

{
"subscription": {
"name": "subscription_name",
"subscription_at": "2022-08-08T00:00:00Z"
}
}
AttributesTypeDescription
nameString      OptionalDisplay name of the subscription.
subscription_atString      Optional
ISO 8601 datetime in UTC
Start date and time of the subscription. Can only be modified for pending subscriptions that have not yet started.

Deprecated arguments

AttributesTypeDescription
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.