Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

Preview Recurring Task Schedule

POST /tenants/{tenant}/recurring-tasks/schedule-preview

Works out the next dates a schedule would produce, without saving anything, so an editor can show them as the schedule changes. A schedule that is not complete yet returns no occurrences, and one that uses a client date returns variesByClient, because its dates differ from client to client.

Requires: ViewAll on RecurringTasks.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

{
  "name": "string",
  "clientCodes": [
    "string"
  ],
  "schedule": {
    "basis": "...",
    "recurrence": "...",
    "start": "...",
    "due": "...",
    "statutory": "..."
  }
}

Responses

401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json