---
title: "Change Calling Plan"
method: PUT
path: "/v2/partition/{partitionId}/account/{accountId}/callingplanproduct/{callingPlanProductId}"
tags: ["Account"]
deprecated: true
---

# Change Calling Plan

`PUT /v2/partition/{partitionId}/account/{accountId}/callingplanproduct/{callingPlanProductId}`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/callingplanproduct/{callingPlanProductId}`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/callingplanproduct/:callingPlanProductId/put.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

DEPRECATED USE account/{accountId}/callingplan INSTEAD -- Will add a pending calling plan.  If a pending calling plan already exists it will remove it and set the new calling plan

## Path parameters

- `accountId` string, required
- `callingPlanProductId` string, required
- `partitionId` string, required

## Response `200`

Successful operation

- CallingPlanX[]
  - `id` string
  - `referenceId` string
  - `referenceType` 'SIP_TRUNK' | 'END_USER' | 'IVR' | 'ACCOUNT' | 'SPECIALTY_LINE' | 'CONTACT_CENTER'
  - `callingPlanProductId` string
  - `endDate` string, date-time
  - `startDate` string, date-time
  - `planMinutes` integer
  - `secondsRemaining` integer

## Other responses

- `400`: Invalid ID supplied
- `404`: Account or Calling Plan Product not found

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/cb514a0728ed?raw)
