---
title: "Set a subscription expiry date"
method: POST
path: "/subscriptions/{subscriptionId}/set_expiry/"
tags: ["Subscription"]
---

# Set a subscription expiry date

`POST /subscriptions/{subscriptionId}/set_expiry/`

Sets the subscription expiry date by updating the latest billing log. Requires a secret key.

## Path parameters

- `subscriptionId` string, required

## Request body

- SubscriptionSetExpiry
  - `expires` string, date-time

## Response `200`

Successful operation

- InlineResponse2002
  - `state` string

## Other responses

- `400` — Invalid status value

---

[API](https://skmtc.net/askell/apis/a-skell-api.md) · [All operations](https://skmtc.net/askell/apis/a-skell-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/askell/a-skell-api/versions/9234f937fa26/schema)
