Create After Call Type


This request adds an after call type to the database.

Resource

POST /aftercalltypes

Payload

Response

The created object.

Context

Authorization

Administrator

Errors

Example

Request
POST https://xelion.nl/api/v1/master/aftercalltypes
Payload
{
    "commonName": "test",
    "objectType": "AfterCallType",
    "lines": [
        {
            "line": {
                "oid": "1651226",
                "objectType": "XCCPhoneLine"
            },
            "objectType": "relAfterCallTypePhoneLine"
        }
    ]
}
Response
{
    "object": {
        "lines": [
            {
                "line": {
                    "permissions": "ReadWriteRemove",
                    "commonName": "Telefoonaansluiting Wesley",
                    "oid": "1651226",
                    "objectType": "XCCPhoneLine"
                },
                "oid": "2049515",
                "objectType": "relAfterCallTypePhoneLine"
            }
        ],
        "permissions": "ReadWriteRemove",
        "commonName": "test",
        "oid": "2049513",
        "objectType": "AfterCallType"
    },
    "links": [
        {
            "rel": "self",
            "href": "https://xelion.nl/api/v1/master/aftercalltypes/2049513",
            "method": "GET"
        }
    ]
}