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_DOCUMENTSaction 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
| Property | Required | Description |
|---|---|---|
lineId | true | UUID for the product. |
type | true | Must be POLICY_DOCUMENTS_UPLOADED. |
payload | true | See below. |
Payload fields
| Property | Required | Description |
|---|---|---|
clientId | true | Client identifier associated with the policy and uploaded documents. |
policyId | true | Target policy to which the documents were uploaded. |
documents[] | true | Array of saved document records attached to the policy. |
documents[].name | true | Original file name stored with the document. |
documents[].extension | true | File extension (e.g., pdf, png). |
documents[].contentId | true | CMS content identifier assigned after upload. |
documents[].url | false | Public 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
| Property | Required | Description |
|---|---|---|
triggerRequestId | true | UUID that identifies the execution of the trigger. |
executedActionCount | true | Number of actions executed by this trigger. A value of 0 indicates no actions were run. |
expectedResponseCount | true | Number of responses expected from executed actions. |
metadata | true | Container object for action-generated metadata. In this case, it is empty ({}). |