Schedules a building application alteration package chain to apply on a date. A later date applies at 00:00 in your organization's timezone. Today applies at the earliest :00 or :30 that is at least 15 minutes away.
An application has at most one scheduled chain. Scheduling a chain that is already scheduled replaces its schedule. Appending to, reordering, removing from or refreshing the chain keeps its schedule. Archiving or applying the chain, or issuing, cancelling or archiving the application, cancels it, and a duplicate of a scheduled chain is not scheduled. An issued or cancelled application can't be scheduled.
If the scheduled apply still runs on an application that has been issued or cancelled, nothing is applied: the chain is no longer scheduled and a task is raised on the application. Otherwise a stale chain is refreshed first. If any step's premium, sum assured, billing frequency or currency then differs from the one scheduled, nothing is applied: the chain stays building with its refreshed steps, it is no longer scheduled, and a task naming the chain and the first step that changed is raised on the application. A chain that is not stale is re-quoted without saving and refused in the same way, with its steps left unchanged. Otherwise the chain starts applying as the user who scheduled it, and a task is raised on the application if the apply stops.
Requires the create application alteration packages permission. Scheduling is opt-in per organization: unless the scheduled_alteration_apply feature flag is enabled for your organization this endpoint returns 403.
400The chain is not building, the application is issued or cancelled, apply_on is before today, or apply_on is today and today's last slot has passed.
403The scheduled_alteration_apply feature flag is not enabled for your organization.
404The application alteration package chain or its application was not found.
409Another chain on the application is scheduled. The message names it.