sdkDeterministic

Update segment

pipeline.updateSegment

Patch selected fields on one draft Launchpad segment. Uses expectedUpdatedAt for conflict protection. Active segments must use campaign revision.

Parameters

workspaceIdrequired
string
No description.
segmentIdrequired
string
No description.
expectedUpdatedAtrequired
string
No description.
patchrequired
object
No description.

Example

TypeScripttypescript
await pipeline.updateSegment({
"workspaceId": "00000000-0000-4000-8000-000000000000",
"segmentId": "00000000-0000-4000-8000-000000000000",
"expectedUpdatedAt": "2026-01-01T00:00:00.000Z",
"patch": {}
})

Response

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

Exceptions

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