Create Country Settings


This request adds a country settings object to the database.

Resource

POST /countrysettings

Response

The created object.

Context

Authorization

Administrator

Errors

Example

Request
POST https://xelion.nl/api/v1/master/countrysettings
Payload
{
    "commonName": "country settings 4",
    "objectType": "XCCCountrySettings",
    "nonLocalPrefixes": [
      {
        "matchString": "+44",
        "objectType": "XCCNumberPrefix"
      }
    ],
    "normalizationRules": [
      {
        "prefix": "+4",
        "replacement": "0",
        "orderNumber": 3,
        "objectType": "XCCNumberMapping"
      }
    ]
}
Response
{
    "object": {
        "nonLocalPrefixes": [
            {
                "matchString": "+44",
                "objectType": "XCCNumberPrefix"
            }
        ],
        "normalizationRules": [
            {
                "prefix": "+4",
                "replacement": "0",
                "orderNumber": 3,
                "objectType": "XCCNumberMapping"
            }
        ],
        "commonName": "country settings 4",
        "oid": "1969428",
        "objectType": "XCCCountrySettings"
    },
    "links": [
        {
            "rel": "self",
            "href": "https://xelion.nl/api/v1/master/countrysettings/1969428",
            "method": "GET"
        }
    ]
}