Engagement / TypeScript SDK
Save comment draft
Save a caller-authored comment as a reviewable draft for a tracked post. It never posts to LinkedIn.
pipeline.saveCommentDraftDeterministic operationParameters
workspaceIdOptional · string- Optional with API key auth, inferred from the key.
trackedPostIdRequired · string- See the input schema for this field.
linkedinAccountIdRequired · string- See the input schema for this field.
commentRequired · string- See the input schema for this field.
alternativesOptional · array- See the input schema for this field.
confidenceScoreOptional · number- See the input schema for this field.
reasoningOptional · string- See the input schema for this field.
await pipeline.saveCommentDraft({
"trackedPostId": "00000000-0000-4000-8000-000000000000",
"linkedinAccountId": "00000000-0000-4000-8000-000000000000",
"comment": "example"
})Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string",
"description": "Optional with API key auth, inferred from the key."
},
"trackedPostId": {
"type": "string"
},
"linkedinAccountId": {
"type": "string"
},
"comment": {
"type": "string"
},
"alternatives": {
"type": "array",
"items": {
"type": "string"
}
},
"confidenceScore": {
"type": "number"
},
"reasoning": {
"type": "string"
}
},
"required": [
"trackedPostId",
"linkedinAccountId",
"comment"
]
}