---
title: "Creating a subscription for an application"
method: POST
path: "/applications/{id}/subscriptions"
tags: ["subscriptions"]
---

# Creating a subscription for an application

`POST /applications/{id}/subscriptions`

Only one subscription for a primary plan can be active at a time, and on creating a new primary subscription the currently active primary subscription will be removed.

## Path parameters

- `id` string, required

## Request body

- ApplicationPostSubscriptions
  - `plan` PlanReadWrite, required
    - `href` string, required — The plan reference.

## Response `200`

The subscription was successfully updated.

- Subscription
  - `id` string, required — The id of the resource.
  - `state` 'active' | 'inactive', required — The state of the subscription.
  - `plan` PlanReadWrite, required
    - `href` string, required — The plan reference.

---

[API](https://skmtc.dev/webscale/apis/webscale-apis.md) · [All operations](https://skmtc.dev/webscale/apis/webscale-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/webscale/webscale-apis/revisions/c98d872b50cb/schema)
