Set plan definition as current
This POST
operation sets a plan definition as current. If successful, you receive an HTTP response code of 204
. See HTTP response codes for other response codes.
POST /pcc/spcm/planDefinitions/<planDefinitionId>/set-as-current
HEADER INFO
tenant: <tenantName>
authorisation: HTTP Basic Auth
permissions: SPCM_PLAN_DEFINITION_UPDATE_PERMISSION
If a plan definition has multiple versions (same planDefinitionId with a different name ), the plan definition that gets set to current is the one provisioned for a subscriber on plan purchase/renewal. Setting one version of a plan definition to current clears the current status of the other plan definition versions.
|
URL parameters
There is one mandatory parameter.
Parameter | Type | Description |
---|---|---|
|
integer |
A unique identifier for a plan definition which was assigned by the server upon creating the plan definition. |
HTTP response codes
Code | Description | ||||
---|---|---|---|---|---|
|
success!
|
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
plan definition not found |
||||
|
conflict with target resource
|
||||
|
failed validation; this typically means that a property was not set or a value is out of range. example
|
||||
|
failed processing (after passing validation). example
|
||||
|
internal error example
|
||||
|
request rejected due to overload |