sdkDeterministic

Save segment

pipeline.saveSegment

Deterministically create or update one coding-agent-authored Launchpad segment by workspace and slug. Does not invoke hosted inference.

Parameters

workspaceIdrequired
string
No description.
segmentrequired
object
No description.

Example

TypeScripttypescript
await pipeline.saveSegment({
"workspaceId": "00000000-0000-4000-8000-000000000000",
"segment": {
"name": "example"
}
})

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