Skip to content

Change a scheduled report

PATCH
/api/v1/analytics/reports/schedules/{id}
curl --request PATCH \
--url https://digize.com/api/v1/analytics/reports/schedules/example \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: 5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69' \
--header 'x-api-key: <x-api-key>' \
--data '{ "input": { "additionalProperty": "example" }, "frequency": "daily", "hour": 1, "weekday": 1, "monthDay": 1, "paused": true }'

Changes when one of the member’s scheduled reports goes, what it reads, or pauses and resumes it.

Needs the analytics:write permission.

id
required
string
>= 1 characters <= 64 characters
Idempotency-Key
string
>= 1 characters <= 255 characters

Makes the request safe to send again: for 24 hours the same key and request answer the first response without repeating the change.

Example

5f1c2a8e-3b7d-4c55-9a0e-1f2d3c4b5a69
Media typeapplication/json
object
input
object
key
additional properties
frequency
string
Allowed values: daily weekly monthly
hour
integer
<= 23
weekday
Any of:
integer
>= 1 <= 7
monthDay
Any of:
integer
>= 1 <= 28
paused
boolean

Done

Media typeapplication/json
object
id
required
string
report
required
string
Allowed values: traffic revenue funnels campaigns cohorts pages landing seo_keywords
name
required

The report’s name, such as Traffic.

string
input
required

What the report reads, as its page or operation takes it.

object
key
additional properties
frequency
required
string
Allowed values: daily weekly monthly
hour
required

The hour it goes, 0 to 23, on the workspace’s clock.

number
weekday
required

Weekly: 1 (Monday) to 7.

number | null
monthDay
required

Monthly: the day, 1 to 28.

number | null
paused
required
boolean
nextAt
required
Any of:
string format: date-time
lastSentAt
required
Any of:
string format: date-time
lastError
required
string | null
createdAt
required
string format: date-time

Example

{
"report": "traffic",
"frequency": "daily"
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

A request with the same Idempotency-Key is still running (conflict).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The Idempotency-Key was used with a different request.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}