curl --request PUT \
--url https://api-dev.narrative.io/datasets/{dataset_id}/refresh-schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cron": "@hourly",
"cron_zone_id": "EST",
"stats_enabled": false,
"status": "active"
}
'Creates new request for request derivation
curl --request PUT \
--url https://api-dev.narrative.io/datasets/{dataset_id}/refresh-schedule \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"cron": "@hourly",
"cron_zone_id": "EST",
"stats_enabled": false,
"status": "active"
}
'Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier for a dataset.
cron expression "for example: @hourly, 0 12 * * 1-5"
zone id where the cron should take place "for example: EST, GMT+2"
Show child attributes
if we need to enable advanced statistics calculation
active will be ran on cron schedule, pending and archived won't be run
active, pending, archived OK
Was this page helpful?