Campaign Item Schema
Velden
Campaign Item Schema
A single work item inside a campaign, one per target entity (party/asset/contact/…). Holds status, assignee, snapshot, outcome, linked artefacts and per-action run history.
campaignId
targetEntityType
Schema id of the target entity (e.g. "party", "asset").
targetEntityId
snapshot
resolvedContact
contactPartyId
contactRelationshipId
email
functionRoles
resolverReason
status
PENDINGIN_PROGRESSDONESKIPPEDFAILEDSKIPPED_NO_RECIPIENTSKIPPED_NO_CONSENTSKIPPED_FREQUENCY_CAPSKIPPED_LEFT_SEGMENTUNSUBSCRIBEDBOUNCEDCOMPLAINEDstatusReason
outcome
Type-specific enum (CONVERTED, NOT_INTERESTED, MEETING_BOOKED, UPGRADED, …).
outcomeAt
outcomeBy
outcomeNotes
assigneeUserId
assigneeTeamId
dueDate
priority
LOWNORMALHIGHURGENTnotes
uniqueKey
Dedup key: campaignId + targetEntityType + targetEntityId (+ contactRelationshipId if sendToAllMatching).
resendCount
Number of manual re-executions via /resend. Mixed into the action correlationId so the send-email Redis dedup (24h TTL) does not swallow the re-send.
enteredAt
When the item entered the campaign (= createdAt normally).
Geen velden komen overeen met het filter.
Standaard-endpoints
Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:
GET /api/v1/campaign_items— Lijst, gepagineerd + filterbaarGET /api/v1/campaign_items/<id>— Enkele entityPOST /api/v1/campaign_items— AanmakenPATCH /api/v1/campaign_items/<id>— Gedeeltelijke updateDELETE /api/v1/campaign_items/<id>— Soft-deleteGET /api/v1/campaign_items/<id>/timeline— Audit + activiteiten