definition, roles and users are replaced whole when sent. Read-only fields (id, domain, created-datetime, modified-datetime, email-next-send-datetime, email-last-sent-datetime, email-last-status) are ignored, so a read can be sent back as is.can-edit is yes) can change name, description, definition and the email-* fields. Changing owner-user, visibility, roles, users or can-edit needs the owner or an Office Manager or above; sending them unchanged needs nothing more. Only an Office Manager or above can hand a report to the domain (owner-user null).revision you read to make sure you are not overwriting someone else's change: if the report has changed since, the request is refused with 409. Leave revision out to change the report whatever its current revision. A change to email-* fields alone leaves revision as it is.202 once the change is accepted; it is applied shortly after.Authorization: Bearer ********************curl --location --request PUT 'https://awqacore01.crexendocloud.com/ns-api/v2/domains//callcenter-reports/c3f1a2e0-5b7d-4e0a-9d61-2f8b9a4c7e11' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"revision": 4,
"name": "Sales queues — weekly (EMEA)"
}'{
"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"
}
}