subscriptions
public

Update Subscription

Changed on

Update a subscription.

Scopes: subscriptions:write

patch/v1/subscriptions/{id}

Request

  • Base URL
    https://api.polar.sh
  • URL
    https://api.polar.sh/v1/subscriptions/{id}
  • Auth
    • OpenID Connect (/.well-known/openid-configuration, scopes: subscriptions:write)
    • or HTTP bearer
    • or HTTP bearer

Path parameters

idstring uuid4 required

The subscription ID.

Request body

OR
OR
OR
OR
OR
OR
OR

Example request

{
  "product_id": "d8dd2de1-21b7-4a41-8bc3-ce909c0cfe23"
}

Response

Subscription updated.

Subscription required(unresolved $ref)

Changes

    • info

      added the new optional request property /

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      added to the response body anyOf list for the response status