Schedules a building 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.
A policy 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 cancels it, and a duplicate of a scheduled chain is not scheduled.
When the scheduled apply runs, 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 policy. 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 policy if the apply stops.
Requires the create alteration package 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, 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 alteration package chain was not found.
409Another chain on the policy is scheduled. The message names it.