Skip to content

POLICY_REINSTATED

This event is fired when a previously cancelled policy is reinstated. It restores the policy to active status and resumes coverage.

When and what fires this event?

If this event is defined on a product, and it has actions that are enabled:

  • Copilot: fires when an administrator reinstates a cancelled policy;
  • API: can fire this event externally on demand.

Request payload

POST: https://api.{ENV}.dais.com/ioi/v3/event/fire

curl --location --request POST 'https://api.{ENV}.dais.com/ioi/v3/event/fire' \
--header 'Authorization: Basic <yourAuthHere>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": "POLICY_REINSTATED",
    "payload": {
        "policyId": "<policyID>"
    }
}'
{
    "type": "POLICY_REINSTATED",
    "payload": {
        "policyId": "3781f5c0-fae6-4bab-8091-8d385fd2a8f5"
    }
}

Request fields

TypeRequiredDescription
typetrueMust be set to POLICY_REINSTATED
payloadtrueExplained below

Payload fields

PropertyRequiredDescription
policyIdtrueUUID for the policy

Response json

{
  "triggerRequestId": "386861af-6875-49b2-b38c-c435263039be",
  "executedActionCount": 0,
  "expectedResponseCount": 0,
  "metadata": {}
}

Response fields

PropertyRequiredDescription
triggerRequestIdtrueUUID that uniquely identifies the trigger execution instance.
executedActionCounttrueNumber of actions executed during this trigger run.
expectedResponseCounttrueNumber of responses expected from the executed actions.
metadatatrueContains dynamically generated data from executed workflow actions.