Reset usage rules

This PUT operation resets the usage rules and counters for a plan. For example, the state of a rule that might be violated will reset to an active state. If successful, you receive an HTTP response code of 204.

See HTTP response codes for other response codes.

PUT /pcc/spcm/subscribers/<msisdn>/plans/<planId>/reset-usage


HEADER INFO

tenant: <tenantName>

authorisation: HTTP Basic Auth

content-type: application/json

permissions: SPCM_PLAN_UPDATE_PERMISSION

URL parameters

There are two mandatory parameters.

Parameter Type Description

msisdn

string

The subscriber’s MSISDN in international format.

planId

string

The unique plan identifier.

HTTP response codes

Code Description

201/204

success!

If you receive a 204 code, you will not see a JSON response.

207

Multistatus response

Check out HTTP statuses for more details.
This is not applicable to all operations.

400

malformed request

401

unauthorised; bad username or password

403

forbidden; user does not have appropriate privileges

404

plan not found

409

conflict with target resource

This often occurs if the item already exists, such as a plan, group, or name.
This is not applicable to all operations.

412

failed validation; this typically means that a property was not set or a value is out of range.

example
HTTP 412
{
  "errors" : [
        {
          "field" : "name",
          "description" : "name is mandatory"
        }
    ]
}

422

failed processing (after passing validation).

example
HTTP 422
{
    "message": "Subscriber max plan count exceeded",
    "errorCode": 1
}

500

internal error

503

request rejected due to overload