Create Status


This request adds a status.

Resource

POST /statuses

Payload

Response

The created object.

Context

Authorization

Administrator

Errors

Example

Request
POST https://xelion.nl/api/v1/master/statuses
Payload
{
    "objectType": "XCCStatus",
    "name": "My status is Pink",
    "statusIcon": "statusPink",
    "doNotDisturb": false,
    "enabled": true,
    "index": 5
}
Response
{
    "object": {
        "name": "My status is Pink",
        "statusIcon": "statusPink",
        "doNotDisturb": false,
        "enabled": true,
        "system": false,
        "index": 4,
        "permissions": "ReadWriteRemove",
        "commonName": "My status is Pink",
        "oid": "2122287",
        "objectType": "XCCStatus"
    },
    "links": [
        {
            "rel": "self",
            "method": "GET"
        }
    ]
}