owner-user, or a domain report by setting it to null. An Office Manager, Reseller or Super User who is not a user of this domain and names no owner saves a domain report.id is generated and returned in the response. name must be unique among the owner's reports. A new report starts at revision 1. The email-* fields can be sent with the report to schedule its email at the same time.202 once the report is accepted; it is applied shortly after.Authorization: Bearer ********************idcurl --location 'https://awqacore01.crexendocloud.com/ns-api/v2/domains//callcenter-reports' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Sales queues — weekly",
"description": "Sales and renewals queues, answered and abandoned",
"visibility": "roles",
"roles": [
"Call Center Supervisor"
],
"can-edit": "yes",
"based-on-id": "performance",
"based-on-version": 2,
"definition": {
"widgets": [
{
"id": "w1",
"type": "kpi",
"metric": "CH"
},
{
"id": "w2",
"type": "queueTable",
"metrics": [
"CO",
"CH",
"AC"
]
}
]
}
}'{
"id": "string",
"domain": "string",
"name": "string",
"description": "string",
"owner-user": "string",
"visibility": "private",
"roles": [
"Call Center Agent"
],
"users": [
"string"
],
"can-edit": "yes",
"based-on-id": "overview",
"based-on-version": 0,
"revision": 1,
"created-datetime": "2019-08-24T14:15:22.123Z",
"modified-datetime": "2019-08-24T14:15:22.123Z",
"email-enabled": "no",
"email-frequency": "weekly",
"email-weekday": 1,
"email-month-day": 1,
"email-time": "08:00",
"email-range": "yesterday",
"email-metrics": [
"VOL"
],
"email-filters": {
"queues": [
"string"
],
"dnis": [
"string"
]
},
"email-include-queue-table": "yes",
"email-attach-csv": "no",
"email-recipients": [
"user@example.com"
],
"email-recipient-users": [
"1001"
],
"email-next-send-datetime": "2019-08-24T14:15:22.123Z",
"email-last-sent-datetime": "2019-08-24T14:15:22.123Z",
"email-last-status": "string",
"definition": {
"property1": "string",
"property2": "string"
}
}