Campaign Item Schema
Champs
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
interactions
Manually logged interactions between a user and the target contact (calls, meetings, notes).
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).
Aucun champ ne correspond au filtre.
Endpoints standard
Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :
GET /api/v1/campaign_items— Liste, paginée et filtrableGET /api/v1/campaign_items/<id>— Une entitéPOST /api/v1/campaign_items— CréerPATCH /api/v1/campaign_items/<id>— Mise à jour partielleDELETE /api/v1/campaign_items/<id>— Suppression logiqueGET /api/v1/campaign_items/<id>/timeline— Audit et activités