cliDeterministic

Update segment

pipeline update-segment

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

CLI commandbash
pipeline update-segment \
--workspace-id "00000000-0000-4000-8000-000000000000" \
--segment-id "00000000-0000-4000-8000-000000000000" \
--expected-updated-at "2026-01-01T00:00:00.000Z" \
--patch-json '{}'

Response

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

Exit codes

1
Invalid input or local configuration.
2
The API or tool returned an error.
3
Authentication failed.
4
A network request failed.
Pipeline CLI documentation | Pipeline