sdkDeterministic

Save content strategy

pipeline.saveContentStrategy

Persist a content strategy authored by the caller. Does not invoke Pipeline hosted inference.

Parameters

workspaceId
string
Optional with API key auth, inferred from the key.
name
string
No description.
pillarsrequired
object[]
No description.
weeklyDistributionrequired
object
No description.
platformDistribution
object
No description.

Example

TypeScripttypescript
await pipeline.saveContentStrategy({
"pillars": [
{
"id": "00000000-0000-4000-8000-000000000000",
"name": "example",
"purpose": "example",
"funnelStage": "tofu",
"postTypes": [
{
"id": "00000000-0000-4000-8000-000000000000",
"name": "example",
"description": "example",
"promptHints": "example"
}
]
}
],
"weeklyDistribution": {}
})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workspaceId": {
"type": "string"
},
"name": {
"type": "string"
},
"isActive": {
"type": "boolean"
}
},
"required": [
"id",
"workspaceId",
"name",
"isActive"
]
}
},
"required": [
"success",
"data"
]
}

Exceptions

PipelineError
Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.
Pipeline TypeScript SDK documentation | Pipeline