Create a stage define or override at project or workflow scope (project admin).
Create a stage define or override at project or workflow scope (project admin). - Rensei REST API operation reference.
AuthorizationBearer <WorkOS user access token>WorkOS user access token created by the Rensei CLI. The authenticated organization is resolved from membership and may be narrowed with X-Rensei-Org.
projectId*stringThe project id.
application/json- body
key*string^[a-z0-9]+(-[a-z0-9]+)*$1 <= length <= 64kind*stringdefine introduces the key and fixes its role; override changes an inherited stage.
"define""override"role?stringRequired on a define; refused on an override.
"hold""intake""inflight""review""rework""done""closed"name?|Display name; required on a define.
1 <= length <= 200description?|length <= 2000disabled?|true hides an inherited stage; null inherits.
modelSelection?|||||The stage default; a bare inherit is stored as null.
outcomes?|Targets must be keys of the effective set of this scope, or stay.
retry?|nullpolicies?|nullworkflowId?stringWrite the workflow-scope row of this workflow (one of the project's).
1 <= lengthThe project- or workflow-scope stage row.
application/json- response
stage*curl -X POST 'https://app.rensei.ai/api/projects/string/stages' \ -H 'Content-Type: application/json' \ -d '{ "key": "string", "kind": "define"}'{ "stage": { "id": "string", "scope": "system", "scopeId": "string", "key": "string", "kind": "define", "role": "hold", "name": "string", "description": "string", "disabled": true, "modelSelection": { "mode": "inherit", "effort": "low" }, "outcomes": { "start": { "target": "string" }, "success": { "target": "stay" }, "failure": { "target": "stay" }, "blocked": { "target": "stay" }, "close": { "target": "stay" } }, "retry": { "retries": 0, "backoffSeconds": 0 }, "policies": { "version": 1 }, "createdAt": "string", "updatedAt": "string" }}The effective stage set of a project or one of its workflows, with provenance and the rows at that scope.
The effective stage set of a project or one of its workflows, with provenance and the rows at that scope. - Rensei REST API operation reference.
Edit the fields of the project- or workflow-scope stage row for a key (project admin).
Edit the fields of the project- or workflow-scope stage row for a key (project admin). - Rensei REST API operation reference.