Storyden
Trails

Preview the next five schedule occurrences

Validate a schedule and return its next five occurrences after the supplied time. The operation does not create or update a Trail. The calculation skips local times that do not exist and emits an ambiguous local time once.

POST
/trails/schedule/preview

Validate a schedule and return its next five occurrences after the supplied time. The operation does not create or update a Trail. The calculation skips local times that do not exist and emits an ambiguous local time once.

Authorization

cookiestoryden-session<token>

Request Body

application/json
  1. body
schedule*

A normalized recurrence definition. The start value is a local date and time anchor in the supplied IANA timezone. The rule produces occurrences on or after this anchor using a supported subset of RFC 5545 recurrence semantics. Invalid dates and nonexistent local times do not produce occurrences. Ambiguous local times produce one occurrence.

after?string
Formatdate-time

Response Body

Trail schedule occurrences calculated.

application/json
  1. response
occurrences*array<>
Example Request
curl -X POST 'https://example.com/api/trails/schedule/preview' \  -H 'Content-Type: application/json' \  -d '{  "schedule": {    "start": "string",    "timezone": "string",    "rule": {      "frequency": "hourly",      "interval": 1    }  }}'
Example Response
{  "occurrences": [    "2019-08-24T14:15:22Z"  ]}