sdkDeterministic
Delete gtm asset draft
pipeline.deleteGtmAssetDraft
Hard-delete only an unapproved, unbound GTM asset draft. Requires explicit confirmation.
Parameters
workspaceIdrequired
string
No description.
kindrequired
string
No description.
offer | lead_magnet
idrequired
string
No description.
confirmrequired
boolean
No description.
Example
TypeScripttypescript
await pipeline.deleteGtmAssetDraft({"workspaceId": "00000000-0000-4000-8000-000000000000","kind": "offer","id": "00000000-0000-4000-8000-000000000000","confirm": true})
Response
Success response schemajson schema
{"type": "object","properties": {"ok": {"type": "boolean"}},"required": ["ok"]}
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.