Update Traffic Class


This request changes traffic class attributes.

Resource

PATCH /trafficclasses/<OID>

Where OID is the oid of the traffic class

Parameters

None

Payload

Fields

Name Patch Operations

rules

add, remove

Response

None

Context

Authorization

Administrator

Errors

Example

Request
PATCH https://xelion.nl/api/v1/master/phonelinesgroups/1627410
Payload

change traffic class direct member

{
    "operations": [
        {
            "op": "replace",
            "path": "/commonName",
            "value": "traffic class 6"
        }
    ]
}

add a new rule to the traffic class, first add a new entry with virtual id 1 and then set the member(s) by adding replace operations on the virtual id '1'

{
    "operations": [
        {
            "op": "add",
            "path": "/rules/1"
        },
        {
            "op": "replace",
            "path": "/rules/1/matchString",
            "value": "+88"
        }
    ]
}

remove rule from a traffic class, <OID> is the oid of the entry

{
    "operations": [
        {
            "op": "remove",
            "path": "/rules/1726623"
        }
    ]
}

change rule submember

{
    "operations": [
        {
            "op": "replace",
            "path": "/rules/1799181/matchString",
            "value": "+888"
        }
    ]
}