---
title: "PUT /api/public/subscriptions/{id}"
method: PUT
path: "/api/public/subscriptions/{id}"
tags: ["api"]
---

# PUT /api/public/subscriptions/{id}

`PUT /api/public/subscriptions/{id}`

Update a Subscription

## Path parameters

- `id` string, required

## Request body

- PUTApiUpdateASubscription
  - `status` 'DRAFT' | 'ACTIVE' | 'INCOMPLETE' | 'CANCELED' | 'ARCHIVED' | 'PENDING-CANCELLATION' — The status of the subscription
  - `customerPaymentMethodId` string — The ID of the payment method of the subscription
  - `attributes` object
  - `consents` object[] — An array of granted consents
    - `type` 'autorenewal', required — The type of the subscription consent
    - `granted` string, date-time, required — The date when the consent was granted
  - `secret` string, required

## Response `200`

OK

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/vivenu/apis/vivenu-api.md) · [All operations](https://skmtc.net/vivenu/apis/vivenu-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vivenu/vivenu-api/revisions/36be0dca14e7/schema)
