Campaign Item Schema
Campos
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).
Ningún campo coincide con el filtro.
Endpoints estándar
Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:
GET /api/v1/campaign_items— Lista, paginada y filtrableGET /api/v1/campaign_items/<id>— Una entidadPOST /api/v1/campaign_items— CrearPATCH /api/v1/campaign_items/<id>— Actualización parcialDELETE /api/v1/campaign_items/<id>— Eliminación lógicaGET /api/v1/campaign_items/<id>/timeline— Auditoría y actividades