Create Automated Report


This request creates a Automated Report.

Resource

POST /reports

Response

The automated report object. Created sub-objects are updated with their object ID.

Context

Authorization

Administrator

Errors

Example

Request
POST https://xelion.nl/api/v1/master/reports
Payload
{
    "commonName": "auto report test",
    "objectType": "AutomatedReport",
    "connections": [
        {
            "phoneLine": {
                "oid": "1057484",
                "objectType": "XCCPhoneLine"
            }
        }
    ],
    "phones": [],
    "users": [],
    "direction": "INCOMINGANDOUTGOING",
    "internal": "INTERNALANDEXTERNAL",
    "jasperDocument": "CallsLine",
    "schedules": [
      {
        "qbQueryReportSchedule": {
          "oid": "1891298",
          "objectType": "QBQueryReportSchedule"
        },
        "objectType": "XCCPhoneLineGroup"
      }
    ],
    "previousReportsMax": 20,
    "mobileStart": 1.12,
    "solidStart": 1.10,
    "internationalStart": 0,
    "mobileMinute": 0,
    "solidMinute": 0,
    "internationalMinute": 0,
    "paymentText": "",
    "hostName": "",
    "ipAddress": ""
}
Response
{
    "object": {
        "schedules": [
            {
                "qbQueryReportSchedule": {
                    "permissions": "ReadWriteRemove",
                    "commonName": "asfd",
                    "oid": "1891298",
                    "objectType": "QBQueryReportSchedule"
                },
                "oid": "1929291",
                "objectType": "relScheduledAutomated"
            }
        ],
        "connections": [
            {
                "phoneLine": {
                    "permissions": "ReadWriteRemove",
                    "commonName": "Aansluiting beheerder",
                    "oid": "1057484",
                    "objectType": "XCCPhoneLine"
                },
                "oid": "1929292",
                "objectType": "relAutoReportPhoneLine"
            }
        ],
        "phones": [],
        "users": [],
        "direction": "INCOMINGANDOUTGOING",
        "internal": "INTERNALANDEXTERNAL",
        "onlyAnswered": false,
        "jasperDocument": "CallsLine",
        "previousResults": [],
        "previousReportsMax": 20,
        "mobileStart": 1.12,
        "solidStart": 1.1,
        "internationalStart": 0.0,
        "mobileMinute": 0.0,
        "solidMinute": 0.0,
        "internationalMinute": 0.0,
        "paymentText": "",
        "hostname": "",
        "ipAddress": "",
        "benchmark": "",
        "serviceLevelTime": "",
        "permissions": "ReadWriteRemove",
        "commonName": "auto report test",
        "oid": "1929287",
        "objectType": "AutomatedReport"
    },
    "links": [
        {
            "rel": "self",
            "method": "GET"
        }
    ]
}