Skip to content
Pile
Esc
↑↓navigate↵open⌘Jpreview

Create stage template seed

Install the default sales-led merchant pipeline stages (Prospect → Onboarding & go-live) as stage templates. Idempotent — existing (entityType, status, stepKey) rows are skipped so operator edits survive a re-seed; deleted rows are re-created.

POST/workspaces/{organizationId}/stage-templates/seed
Path parameters
organizationIdstringrequired
Responses
200

Seeded stage templates

templatesStageTemplate[]required
Show properties
Array of StageTemplate
idstringrequired
organizationIdstringrequired
entityTypestringrequired
Allowed:issuedealcustomer
statusstringrequired
stepKeystringrequired
titlestringrequired
requiredbooleanrequired
ownerAgentstring | nullrequired
conditionobject | nullrequired

Optional gate — {field} creates the step only when the record's field (column or custom field) is truthy; {field, equals} compares for equality. Field names normalize: "Hardware needed" == "hardware_needed".

Show properties
fieldstringrequired
min length 1
equalsstring | number | boolean
Show properties
Any of:
string
string
number
number
boolean
boolean
positionintegerrequired
teamIdstring | nullrequired
createdBystring | nullrequired
createdAtstringrequired
updatedAtstringrequired
skippedintegerrequired
Try it
Server
Parameters
Request
curl -X POST '/workspaces/string/stage-templates/seed' \
  -H 'Accept: application/json'
Response
{
  "templates": [
    {
      "id": "string",
      "organizationId": "string",
      "entityType": "issue",
      "status": "string",
      "stepKey": "string",
      "title": "string",
      "required": true,
      "ownerAgent": "string",
      "condition": {
        "field": "string",
        "equals": "string"
      },
      "position": 0,
      "teamId": "string",
      "createdBy": "string",
      "createdAt": "string",
      "updatedAt": "string"
    }
  ],
  "skipped": 0
}

Was this page helpful?