sdkDeterministic
Save comment draft
pipeline.saveCommentDraft
Save a caller-authored comment as a reviewable draft for a tracked post. It never posts to LinkedIn.
Parameters
workspaceId
string
Optional with API key auth, inferred from the key.
trackedPostIdrequired
string
No description.
linkedinAccountIdrequired
string
No description.
commentrequired
string
No description.
alternatives
string[]
No description.
confidenceScore
number
No description.
reasoning
string
No description.
Example
TypeScripttypescript
await pipeline.saveCommentDraft({"trackedPostId": "00000000-0000-4000-8000-000000000000","linkedinAccountId": "00000000-0000-4000-8000-000000000000","comment": "example"})
Response
Success response schemajson schema
{"type": "object","properties": {"draft": {"type": "object","properties": {"id": {"type": "string"},"workspace_id": {"type": "string"},"tracked_post_id": {"type": "string"},"approval_status": {"type": "string","enum": ["pending","approved","rejected","edited","sent","expired"]}},"required": ["id","workspace_id","tracked_post_id","approval_status"]}},"required": ["draft"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.