sdkDeterministic
Save campaign brief
pipeline.saveCampaignBrief
Validate and persist a campaign brief authored by the caller. This deterministic write never invokes Pipeline hosted inference and always saves as a draft.
Parameters
workspaceId
string
Optional with API key auth, inferred from the key.
planrequired
object
No description.
ideaId
string
No description.
icpProfileId
string
No description.
idempotencyKey
string
Caller-stable key for retry-safe brief creation.
Example
TypeScripttypescript
await pipeline.saveCampaignBrief({"plan": {}})
Response
Success response schemajson schema
{"type": "object","properties": {"brief": {"type": "object","properties": {"id": {"type": "string"},"workspaceId": {"type": "string"},"status": {"type": "string"},"plan": {"type": "object"}},"required": ["id","workspaceId","status","plan"]},"validation": {"type": "object","properties": {"valid": {"type": "boolean"},"errors": {"type": "array","items": {"type": "string"}},"warnings": {"type": "array","items": {"type": "string"}}},"required": ["valid","errors","warnings"]}},"required": ["brief","validation"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.