curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/submissions/{submissionId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corp - Updated Submission"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440001",
"companyId": "660e8400-e29b-41d4-a716-446655440000",
"number": "SUB-2024-001",
"name": "Acme Corp - Updated Submission",
"status": "quoted",
"type": "new_business",
"primaryInsuredName": "Acme Corporation",
"applicationId": "550e8400-e29b-41d4-a716-446655440010",
"renewingPolicyId": null,
"renewingPolicyNumber": null,
"declineReason": null,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-20T09:00:00.000Z",
"closedAt": null,
"boundAt": null
}Submissions
Update Submission
Updates an existing submission. Only send fields you want to change (PATCH semantics).
Optional update fields:
name- Update submission name (send null to clear)status- Update submission statustype- Update submission typerenewingPolicyId- Update renewing policy (send null to clear)declineReason- Update decline reason (send null to clear)
Note: The renewingPolicyId must reference an existing, non-deleted policy.
Required permission: company.submission:update
PATCH
/
api
/
external
/
companies
/
{companyId}
/
submissions
/
{submissionId}
curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/submissions/{submissionId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corp - Updated Submission"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440001",
"companyId": "660e8400-e29b-41d4-a716-446655440000",
"number": "SUB-2024-001",
"name": "Acme Corp - Updated Submission",
"status": "quoted",
"type": "new_business",
"primaryInsuredName": "Acme Corporation",
"applicationId": "550e8400-e29b-41d4-a716-446655440010",
"renewingPolicyId": null,
"renewingPolicyNumber": null,
"declineReason": null,
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-20T09:00:00.000Z",
"closedAt": null,
"boundAt": null
}Authorizations
Path Parameters
Body
application/json
Request to update a submission. All fields are optional (PATCH semantics).
Response
Submission updated successfully
The updated submission (without quoteIds)
Was this page helpful?
