Content / TypeScript SDK
Update content strategy
Edit an exact saved content strategy without hosted inference. Preserves omitted fields and never schedules or publishes posts.
pipeline.updateContentStrategyDeterministic operationParameters
workspaceIdOptional · string- Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
strategyIdRequired · string- See the input schema for this field.
nameOptional · string- See the input schema for this field.
goalOptional · string | null- See the input schema for this field.
pillarsOptional · array- See the input schema for this field.
weeklyDistributionOptional · object- See the input schema for this field.
platformDistributionOptional · object- See the input schema for this field.
await pipeline.updateContentStrategy({
"strategyId": "00000000-0000-4000-8000-000000000000"
})Full input schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"workspaceId": {
"type": "string",
"minLength": 1,
"description": "Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client."
},
"strategyId": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"goal": {
"type": [
"string",
"null"
],
"maxLength": 1000
},
"pillars": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"minLength": 1
},
"purpose": {
"type": "string",
"minLength": 1
},
"funnelStage": {
"type": "string",
"enum": [
"tofu",
"mofu",
"bofu"
]
},
"postTypes": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string",
"minLength": 1
},
"promptHints": {
"type": "string"
}
},
"required": [
"id",
"name",
"description",
"promptHints"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"name",
"purpose",
"funnelStage",
"postTypes"
],
"additionalProperties": false
}
},
"weeklyDistribution": {
"type": "object",
"additionalProperties": true
},
"platformDistribution": {
"type": "object",
"additionalProperties": true
}
},
"required": [
"strategyId"
]
}