Update pipeline stage
Code Mode: praxis.crm.pipelines.stages.update
HTTP: PATCH /crm/v1/pipelines/{objectType}/{pipelineId}/stages/{stageId}
Change the label, order or metadata of a stage selected from pipelines.retrieve. Existing records must satisfy entry rules when subsequently moved; omitted settings retain their values. Stage rules are string values in stage.metadata: praxis_category is open (active), won (successful) or lost (unsuccessful); praxis_terminal is “true” (no further transition) or “false” (transitions allowed); praxis_allowed_next is a JSON-encoded array string of permitted next stage ids, with the string “null” meaning unrestricted; praxis_required is a JSON-encoded array string of property names (”[]” means none) that must be non-empty on entry (boolean properties must be “true”). Rule violations return HTTP 400 VALIDATION_ERROR; errors[0].context.properties lists missing required property names. Correct those values or choose an allowed stage before retrying. Writes return refs (ResourceRef[]) for entity cards and optional property changes in conversations. Example metadata: {“praxis_category”:“open”,“praxis_terminal”:“false”,“praxis_allowed_next”:”[“proposal”,“lost”]”,“praxis_required”:”[“budget”,“decision_maker”]”}.
Signature
praxis.crm.pipelines.stages.update(args:{path:{objectType:string;pipelineId:string;stageId:string};body:{/** A boolean indicating whether the pipeline stage is archived. */ archived?:boolean;/** An integer specifying the order in which the stage appears relative to other stages. e.g. 0 */ displayOrder?:number;/** A string representing the name or title of the pipeline stage. */ label?:string;/** String-valued stage settings, including transition and entry requirements. e.g. {"praxis_category":"open","praxis_terminal":"false","praxis_allowed_next":"[\"proposal\",\"lost\"]","praxis_required":"[\"budget\",\"decision_maker\"]"} */ metadata:{/** open marks active work; won marks a successful outcome; lost marks an unsuccessful outcome. e.g. "open" */ praxis_category?:"open"|"won"|"lost";/** "true" forbids further transitions from this stage; "false" allows transitions subject to praxis_allowed_next. e.g. "false" */ praxis_terminal?:"true"|"false";/** JSON-encoded string array of allowed destination stage ids; the string null permits any active stage in the same pipeline. e.g. "[\"proposal\",\"lost\"]" */ praxis_allowed_next?:string;/** JSON-encoded string array of internal property names required on entry; [] means none. e.g. "[\"budget\",\"decision_maker\"]" */ praxis_required?:string;[key:string]:string}}}):Promise<({/** A boolean indicating whether the stage is archived. */ archived:boolean;/** The date and time when the stage was archived, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ archivedAt?:string;/** The date and time when the stage was created, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ createdAt:string;/** An integer indicating the position of this stage within the pipeline, determining its order relative to other stages. e.g. 0 */ displayOrder:number;/** A unique string identifier for the pipeline stage. */ id:string;/** The name or title of the pipeline stage, represented as a string. */ label:string;/** String-valued stage settings, including transition and entry requirements. e.g. {"praxis_category":"open","praxis_terminal":"false","praxis_allowed_next":"[\"proposal\",\"lost\"]","praxis_required":"[\"budget\",\"decision_maker\"]"} */ metadata:{/** open marks active work; won marks a successful outcome; lost marks an unsuccessful outcome. e.g. "open" */ praxis_category?:"open"|"won"|"lost";/** "true" forbids further transitions from this stage; "false" allows transitions subject to praxis_allowed_next. e.g. "false" */ praxis_terminal?:"true"|"false";/** JSON-encoded string array of allowed destination stage ids; the string null permits any active stage in the same pipeline. e.g. "[\"proposal\",\"lost\"]" */ praxis_allowed_next?:string;/** JSON-encoded string array of internal property names required on entry; [] means none. e.g. "[\"budget\",\"decision_maker\"]" */ praxis_required?:string;[key:string]:string};/** The date and time when the stage was last updated, in ISO 8601 format. e.g. "2026-10-29T12:00:00Z" */ updatedAt:string;/** A string indicating the write permissions for the stage. e.g. "CRM_PERMISSIONS_ENFORCEMENT" */ writePermissions:"CRM_PERMISSIONS_ENFORCEMENT"|"INTERNAL_ONLY"|"READ_ONLY"})&({/** Affected record references for rendering entity cards in conversations; may be empty for definition-only writes. */ refs:Array<{/** Object type containing the referenced record; use with objects.retrieve. e.g. "deals" */ object:string;/** Record identifier to retrieve with object; obtained from the write result. e.g. "rec_example" */ id:string;/** Console URL for opening the entity card in a conversation or viewing the record. e.g. "https://console.deepraxis.com/crm/deals/rec_example" */ viewer_url:string;/** Optional property changes to render alongside the entity card. */ changes?:Array<{/** Internal name of the property changed by this request. */ property:string;/** Value before the change; null means the property was empty. */ before:string|null;/** Value committed by the change; null means the property was cleared. */ after:string|null}>}>})>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| objectType | path | string | yes | Object type name from schemas.list, such as contacts, companies, deals or a custom p_<name>. |
| pipelineId | path | string | yes | Pipeline identifier from pipelines.list for this objectType. |
| stageId | path | string | yes | Stage identifier from the stages array returned by pipelines.retrieve for this pipeline. |
Request body
| Required | Content types | Description |
|---|---|---|
| yes | application/json | Values for update pipeline stage; use internal property names and resource ids from the corresponding list operations. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | Update pipeline stage succeeded; inspect the returned resource or result collection. |
| 400 | application/json | VALIDATION_ERROR rejects invalid properties or stage rules; supply errors[0].context.properties when requirements are missing, or choose an allowed stage. BAD_REQUEST rejects malformed input; correct the request before retrying. |
| 401 | application/json | The bearer credential is missing or invalid; provide a valid platform API key before retrying. |
| 404 | application/json | OBJECT_NOT_FOUND means an object type, record or definition is unavailable in your organization; select an accessible identifier from its list operation. |
| 409 | application/json | CONFLICT means a unique value is already used or a change-set reversal would overwrite a later value; read the current records and resolve the conflicting values before retrying. |