Get Trigger


This request returns the specified trigger

Resource

GET /triggers/<Oid>

Parameters

None

Payload

None

Context

Authorization

Administrator

Errors

Example

Request
GET https://xelion.nl/api/v1/master/triggers/1757883
Response
{
    "object": {
        "type": "new_call",
        "action": "system_command",
        "condition": "${incoming}=1",
        "value": "c:\opencard.exe",
        "active": true,
        "properties": [
            {
                "name": "property1",
                "value": "",
                "objectValue": {
                    "permissions": "ReadWriteRemove",
                    "commonName": "Paul Huisman",
                    "oid": "123456",
                    "objectType": "Person"
            },
                "oid": "1801488",
                "objectType": "XCCTriggerProperty"
            },
            {
                "name": "prop2",
                "value": "programmer",
                "oid": "1801490",
                "objectType": "XCCTriggerProperty"
            }
        ],
        "objectDefinitiom": {
            "commonName": "callLog",
            "fields": [
                {
                    "type": "stringType",
                    "label": "id",
                    "value": "${callId}",
                    "orderNumber": 1,
                    "oid": "1801492",
                    "objectType": "ExternalFieldDefinition"
                },
                {
                    "type": "objectType",
                    "label": "line",
                    "value": "",
                    "aggregation": {
                        "commonName": "line",
                        "fields": [
                            {
                                "type": "stringType",
                                "label": "label",
                                "value": "${commonName}",
                                "orderNumber": 1,
                                "oid": "1801495",
                                "objectType": "ExternalFieldDefinition"
                            }
                        ],
                        "oid": "1801494",
                        "objectType": "ExternalObjectDefinition"
                    },
                    "orderNumber": 2,
                    "oid": "1801493",
                    "objectType": "ExternalFieldDefinition"
                }
            ],
            "oid": "1801491",
            "objectType": "ExternalObjectDefinition"
        },
        "countrySettings": {
            "permissions": "ReadWriteRemove",
            "commonName": "Nederland",
            "oid": "1737342",
            "objectType": "XCCCountrySettings"
        },
        "permissions:": "ReadWriteRemove",
        "commonName": "testtrigger1234",
        "accessRights": "ReadWrite",
        "domain": [],
        "oid": "453456",
        "objectType": "XCCTrigger"
    },
    "links": [
        {
            "rel": "self",
            "href": "https://xelion.nl/api/v1/master/triggers/1801487",
            "method": "GET"
        }
    ]
}