apiDeterministic
Save segment
POST /api/v1/segments
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
REST requestbash
curl -X POST "https://app.pipeline.help/api/v1/segments" \-H "Authorization: Bearer $PIPELINE_API_KEY" \-H "Content-Type: application/json" \-d '{"workspaceId":"00000000-0000-4000-8000-000000000000","segment":{"name":"example"}}'
Response
Success response schemajson schema
{"type": "object","properties": {"segment": {"type": "object"}},"required": ["segment"]}
HTTP errors
- 401
- Missing or invalid API key.
- 403
- Authenticated but not permitted for the workspace or resource.
- 404
- The requested resource was not found.