pipeline_stages_upsert
Create or update a pipeline stage with name, sort order, default probability, and outcome flag. Pass stageId to modify an existing stage; omit it to add a new one.
Instructions
Lege eine Phase an oder bearbeite sie (§6b): name, sort, the default probability (0 to 100, validated here, the one place a default enters), and the outcome flag (won or lost) that makes entering the stage terminal through deals_mark. Pass stageId to patch, omit it to append. The stage names are workspace data; the stage-to-status derivation stays fixed mechanism (§6b Fixed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| sort | No | ||
| outcome | No | ||
| stageId | No | ||
| pipelineId | Yes | ||
| probability | No | ||
| workspaceId | Yes | ||
| idempotencyKey | No |