---
title: "Change subscription plan"
method: POST
path: "/subscriptions/update/{appId}"
tags: ["Subscriptions"]
---

# Change subscription plan

`POST /subscriptions/update/{appId}`

## Request

- Base URL: `https://us-central1-paymentgateway-ab783.cloudfunctions.net/api`
- URL: `https://us-central1-paymentgateway-ab783.cloudfunctions.net/api/subscriptions/update/{appId}`
- Auth: HTTP bearer

Upgrade or downgrade the subscription for the specified app.

## Path parameters

- `appId` string, required

## Request body

- object
  - `newPriceId` string, required: Target Stripe price identifier.
  - `prorationBehavior` 'create_prorations' | 'none' | 'always_invoice'

## Response `200`

Subscription updated

## Other responses

- `401`: Missing or invalid authentication token
- `500`: Failed to update subscription

---

[API](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api.md) · [All operations](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futuresenseai/apis/futuresense-ai-central-hub-api/revisions/53e075911af9?raw)
