sdkDeterministic
Save sop draft
pipeline.saveSopDraft
Save a personalized Reply/SDR SOP as an inactive versioned workspace draft. No hosted inference. Review before publication.
Parameters
workspaceId
string
No description.
skillNamerequired
string
No description.
overlayMdrequired
string
No description.
expectedDraftCreatedAtrequired
string | null
Exact pending draft createdAt, null only when no draft exists.
Example
TypeScripttypescript
await pipeline.saveSopDraft({"skillName": "example","overlayMd": "example","expectedDraftCreatedAt": "2026-01-01T00:00:00.000Z"})
Response
Success response schemajson schema
{"type": "object","properties": {"overlay": {"type": "object"},"version": {"type": "object"}},"required": ["overlay","version"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.