Skip to content

POLICY_DOCUMENTS_UPLOADED

This event notifies the system that one or more documents were successfully uploaded to a policy. It is emitted after creating a DOCUMENT_UPLOADED policy event and contains the saved document metadata (including contentId and optional public url).

When and what fires this event?

  • Internally: Fired by the UPLOAD_POLICY_DOCUMENTS action after it creates the policy event and persists the documents.
  • Externally via API: May be fired on-demand if an integration needs to publish the same notification explicitly.

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 '{
  "lineId": "<UUID of the product>",
  "type": "POLICY_DOCUMENTS_UPLOADED",
  "payload": {
    "clientId": "<UUID of the client>",
    "policyId": "<UUID of the policy>",
    "documents": [
      {
        "name": "Endorsement.pdf",
        "extension": "pdf",
        "contentId": "<CMS-CONTENT-ID>",
        "url": "https://public.cdn/<...>" 
      },
      {
        "name": "COI.png",
        "extension": "png",
        "contentId": "<CMS-CONTENT-ID>",
        "url": null
      }
    ]
  }
}'
{
  "lineId": "262e67be-c08c-43c0-bb51-06fe4408b4e9",
  "type": "POLICY_DOCUMENTS_UPLOADED",
  "payload": {
    "clientId": "220c4020-7f20-4a16-ba51-d0945804dd83",
    "policyId": "b31e1d1e-31e0-4d9a-9a86-7f9d0a1a2b33",
    "documents": [
      {
        "name": "Endorsement.pdf",
        "extension": "pdf",
        "contentId": "<CMS-CONTENT-ID>",
        "url": "https://public.cdn/<...>"
      }
    ]
  }
}

Request fields

PropertyRequiredDescription
lineIdtrueUUID for the product.
typetrueMust be POLICY_DOCUMENTS_UPLOADED.
payloadtrueSee below.

Payload fields

PropertyRequiredDescription
clientIdtrueClient identifier associated with the policy and uploaded documents.
policyIdtrueTarget policy to which the documents were uploaded.
documents[]trueArray of saved document records attached to the policy.
documents[].nametrueOriginal file name stored with the document.
documents[].extensiontrueFile extension (e.g., pdf, png).
documents[].contentIdtrueCMS content identifier assigned after upload.
documents[].urlfalsePublic URL if available; may be null.

Response json

On success, a standard trigger response is returned. Any metadata present in the response is produced by listeners/actions configured for this event.

{
  "triggerRequestId": "<UUID>",
  "executedActionCount": 0,
  "expectedResponseCount": 0,
  "metadata": { }
}

Actual counts depend on how many actions are configured for this event in your environment.

Response fields

PropertyRequiredDescription
triggerRequestIdtrueUUID that identifies the execution of the trigger.
executedActionCounttrueNumber of actions executed by this trigger. A value of 0 indicates no actions were run.
expectedResponseCounttrueNumber of responses expected from executed actions.
metadatatrueContainer object for action-generated metadata. In this case, it is empty ({}).