ParasendDocs
Sign in Start free

Change a batch's follow-up policy

POST/v1/batches/{id}/policy_change

Changes the follow-up policy of the batch's deliveries that have not yet confirmed. With dry_run: true, shows what would change and what it would cost, and changes nothing.

Path parameters

  • idstringrequired

    The batch's ID, starting bat_.

Body

Required

  • policy_idstring · nullablerequired

    The new follow-up policy's ID (rpol_…), or null (or rpol_none) for none.

Optional

  • scopestring

    For a batch only.

    One of batch_followers all_pending
    Default "batch_followers"
  • startobject

    Where notified deliveries start in the new policy: {"from": "first"} (the default), its first reminder, or {"from": "step", "step": n}, step n counting from 1. The first notice is never sent again; deliveries not yet notified follow the new policy from its start.

    2 fields of start
  • extend_expiry_tostring · date-time · nullable

    Move the affected deliveries' expiry to this time (ISO 8601), which must be in the future. An expiry is only ever moved later, never past a year from the delivery's creation, and never past the deletion of its documents.

  • dry_runboolean

    When true, nothing changes: the response says what the change would do. Default false.

    Default false

Returns

200 application/json. What changed — or, with dry_run, what would.

Errors have one shape; see Errors for every code.