sdkDeterministic

Create gtm asset candidate

pipeline.createGtmAssetCandidate

Create a caller-authored GTM asset candidate for one core offering. Does not invoke hosted AI or approve the asset.

Parameters

workspaceIdrequired
string
No description.
offeringIdrequired
string
No description.
candidaterequired
object
No description.
offerType
string
No description.
direct_offer | front_end_offer | trial

Example

TypeScripttypescript
await pipeline.createGtmAssetCandidate({
"workspaceId": "00000000-0000-4000-8000-000000000000",
"offeringId": "00000000-0000-4000-8000-000000000000",
"candidate": {}
})

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