sdkDeterministic

Update gtm asset candidate

pipeline.updateGtmAssetCandidate

Edit the canonical candidate returned in list-gtm-assets editableCandidates, using expectedUpdatedAt. Review evidence, claims and hardRejections before approval. Approved assets create a superseding version.

Parameters

workspaceIdrequired
string
No description.
offeringIdrequired
string
No description.
kindrequired
string
No description.
offer | lead_magnet
idrequired
string
No description.
expectedUpdatedAtrequired
string
No description.
candidaterequired
object
No description.
offerType
string
No description.
direct_offer | front_end_offer | trial

Example

TypeScripttypescript
await pipeline.updateGtmAssetCandidate({
"workspaceId": "00000000-0000-4000-8000-000000000000",
"offeringId": "00000000-0000-4000-8000-000000000000",
"kind": "offer",
"id": "00000000-0000-4000-8000-000000000000",
"expectedUpdatedAt": "2026-01-01T00:00:00.000Z",
"candidate": {
"assetType": "offer",
"slug": "example",
"version": 1,
"title": "example",
"description": "example",
"lifecycleStatus": "candidate",
"evidence": {
"citations": [
{
"id": "00000000-0000-4000-8000-000000000000",
"sourceKind": "workspace_fact",
"sourceLabel": "example",
"sourceUrl": "https://example.com",
"excerpt": "example",
"observedAt": "2026-01-01T00:00:00.000Z",
"confidence": 0,
"approvedForOutbound": false
}
]
},
"claims": [
{
"claim": "example",
"claimType": "factual",
"evidenceIds": [
"00000000-0000-4000-8000-000000000000"
],
"allowed": false,
"humanReviewRequired": false,
"reason": "example"
}
],
"score": {
"deliveryCost": 3,
"prospectValue": 3,
"competenceProof": 3,
"icpPainFit": 3,
"channelFriction": 3,
"conversionBridge": 3,
"total": 18,
"hardRejections": []
}
}
})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"asset": {
"type": "object"
}
},
"required": [
"asset"
]
}

Exceptions

PipelineError
Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.
Pipeline TypeScript SDK documentation | Pipeline