Skip to main content
PUT
/
api
/
external
/
companies
/
{companyId}
/
v1
/
events
/
{eventId}
Update Event
curl --request PUT \
  --url https://app.aiinsurance.io/api/external/companies/{companyId}/v1/events/{eventId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "eventType": "claim",
  "eventCoverageType": "550e8400-e29b-41d4-a716-446655440050",
  "eventInsureds": [
    "550e8400-e29b-41d4-a716-446655440200"
  ],
  "lossDescription": "Updated - severe water damage to building"
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440300",
  "companyId": "550e8400-e29b-41d4-a716-446655440000",
  "policyId": "550e8400-e29b-41d4-a716-446655440100",
  "lawsuitId": null,
  "fieldModelV1Data": {
    "eventType": "claim",
    "eventCoverageType": "General Liability",
    "lossDescription": "Updated - severe water damage to building"
  },
  "createdAt": "2025-01-15T10:30:00.000Z",
  "createdBy": "google-oauth2|123456789",
  "updatedAt": "2025-01-20T14:00:00.000Z",
  "updatedBy": "google-oauth2|987654321"
}

Authorizations

Authorization
string
header
required

API key authentication. Include your key in the Authorization header: Authorization: ApiKey YOUR-API-KEY

Path Parameters

companyId
string<uuid>
required

Company identifier

eventId
string<uuid>
required

Event identifier

Body

application/json

Flat JSON object with field referenceIds as keys (full replacement)

Response

Event updated successfully

A Field Model V1 event entity with dynamic field data.

id
string<uuid>
required

Event identifier

companyId
string<uuid>
required

Company identifier

fieldModelV1Data
object
required

Dynamic field data for the event. Keys are field referenceIds defined in the company's field configuration. Includes base fields like eventType and eventCoverageType as well as any custom fields.

policyId
string<uuid> | null

Associated policy ID

lawsuitId
string<uuid> | null

Associated lawsuit ID

createdAt
string<date-time> | null

When the event was created

createdBy
string | null

User ID who created the event

updatedAt
string<date-time> | null

When the event was last updated

updatedBy
string | null

User ID who last updated the event