Create Traffic Class


This request adds a traffic class to the database.

Resource

POST /trafficclasses

Payload

Response

The created object.

Context

Authorization

Administrator

Errors

Example

Request
POST https://xelion.nl/api/v1/master/trafficclasses
Payload
{
    "commonName": "traffic class",
    "objectType": "XCCTrafficClass",
    "rules": [
      {
        "matchString": "+44",
        "objectType": "XCCTrafficClassRule"
      }
    ]
}
Response
{
    "object": {
        "rules": [
            {
                "matchString": "+44",
                "objectType": "XCCTrafficClassRule"
            }
        ],
        "commonName": "traffic class",
        "oid": "1799180",
        "objectType": "XCCTrafficClass"
    },
    "links": [
        {
            "rel": "self",
            "href": "https://xelion.nl/api/v1/master/trafficclasses/1799180",
            "method": "GET"
        }
    ]
}