Add plan definition to a catalog
This POST operation adds a plan definition to an existing plan definition catalog. If successful, you receive a response code of 200.
| In order to add the plan definition to a catalog, the plan definition must be finalised. |
| See HTTP response codes for other response codes. |
POST /pcc/spcm/planDefinitions/add-to-catalog + JSON request payload
HEADER INFO
tenant: <tenantName>
authorisation: HTTP Basic Auth
content-type: application/JSON
permissions: SPCM_PLAN_DEFINITION_UPDATE_PERMISSION
JSON request payload
You need to pass the planDefinitionName in the JSON payload along with the catalogName to which you want to add the plan definition.
| Both are mandatory strings and are the only key:value pairs required. |
{
"planDefinitionName": "theGreatestPlan",
"catalogName": "OneCallPrepaid"
}
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 |
||||
|
request rejected due to overload |