Strategy / TypeScript SDK
Preview campaign revision
Deterministically preview a prelaunch campaign revision. Returns changed fields, exact impact, row cohort, and a proposal fingerprint. Does not invoke AI or write data.
pipeline.previewCampaignRevisionDeterministic operationParameters
workspaceIdRequired · string- See the input schema for this field.
briefIdRequired · string- See the input schema for this field.
segmentIdRequired · string- See the input schema for this field.
expectedVersionRequired · integer- See the input schema for this field.
proposedPlanRequired · object- See the input schema for this field.
expectedSegmentUpdatedAtOptional · string- See the input schema for this field.
segmentPatchOptional · object- See the input schema for this field.
reasonOptional · string- See the input schema for this field.
await pipeline.previewCampaignRevision({
"workspaceId": "00000000-0000-4000-8000-000000000000",
"briefId": "00000000-0000-4000-8000-000000000000",
"segmentId": "00000000-0000-4000-8000-000000000000",
"expectedVersion": 1,
"proposedPlan": {}
})Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string"
},
"briefId": {
"type": "string"
},
"segmentId": {
"type": "string"
},
"expectedVersion": {
"type": "integer",
"minimum": 1
},
"proposedPlan": {
"type": "object",
"additionalProperties": true
},
"expectedSegmentUpdatedAt": {
"type": "string"
},
"segmentPatch": {
"type": "object",
"additionalProperties": true
},
"reason": {
"type": "string",
"maxLength": 2000
}
},
"required": [
"workspaceId",
"briefId",
"segmentId",
"expectedVersion",
"proposedPlan"
],
"additionalProperties": false
}