Set subscriber service state
This PUT
operation sets a subscriber’s state to either in service, out of service, or obsolete. If successful, you receive an HTTP response code of 200
. See HTTP response codes for other response codes.
This operation is synchronous, i.e. an HTTP response is only returned after all matching subscribers have been updated. |
PUT /pcc/spcm/oam/subscribers/service-state
+ JSON request
HEADER INFO
tenant: <tenantName>
authorisation: HTTP Basic Auth
content-type: application/json
permissions: SPCM_OAM_UPDATE_PERMISSION
JSON request
The example below sets those subscribers with prefixes of 88812
and 88831
to OUT_OF_SERVICE
.
{
"msisdnPrefixes": [
"88812",
"88831"
],
"invertMatch": false,
"serviceState": "OUT_OF_SERVICE"
}
SPCM O&M type descriptions
These are the JSON key-value pair descriptions for the SPCM OM API operations.
Field | Type | Description | ||
---|---|---|---|---|
|
string |
A list of MSISDN prefixes of subscribers to match. |
||
|
boolean |
A flag indicating if the inverse of the match should occur.
|
||
|
enum |
Sets the service state of the listed MSISDNs. options
|
HTTP response codes
These are the possible HTTP response codes for the SPCM OM service-state
operation.
Code | Description | ||||
---|---|---|---|---|---|
|
success! |
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
subscriber not found |
||||
|
conflict with target resource
|
||||
|
failed validation; this typically means that a property was not set or a value is out of range. |
||||
|
failed processing (after passing validation). |
||||
|
internal error |
||||
|
request rejected due to overload |