Schedule an alteration package chain

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.

Path Params
uuid
required

Must be a UUID. The unique identifier of the building alteration package chain to schedule.

Query Params
string

To perform an idempotent request, provide the idempotency_key query parameter with the request. An idempotency key is a unique value generated by the client which the platform uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using a V4 UUID, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.

Body Params
date
required

The date to apply the chain on, in your organization's timezone. Must be today or later.

Responses

400

The chain is not building, apply_on is before today, or apply_on is today and today's last slot has passed.

403

The scheduled_alteration_apply feature flag is not enabled for your organization.

404

The alteration package chain was not found.

409

Another chain on the policy is scheduled. The message names it.

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json