---
updatedAt: 2025-06-08T14:09:50.000Z
agentTools:
  projectIndex: https://developers.kommo.com/llms.txt
---

# Pipeline stage edit

This method allows editing a pipeline stage. You can pass stage descriptions (optional).

**Limitations**\
The method is available for administrator users only.

The following restrictions apply to stages descriptions:

* Only 3 stage descriptions can be created for different user levels
* You can not pass the same level in different descriptions
* Maximum description length 1000 characters
* You can send emojis in descriptions
* You can pass the following levels in descriptions: newbie, candidate and master

**Authorization type**\
OAuth 2.0 with Access Token/ Long-lived token

**Data type header when the request is successful**\
Content-Type: application/hal+json

**Data type header in case of an error**\
Content-Type: application/problem+json

## Response parameters

The method returns an object of the edited stage.

<HTMLBlock>{`
<div class="term_table_wrapper">
<table class="term_table">
<thead><tr>
<th style="width: 15%;">Parameter</th>
<th style="width: 20%;">Data type</th>
<th style="width: 65%;">Description</th>
</tr></thead>
<tbody>
<tr>
<td>name</td>
<td>string</td>
<td>Stage name</td>
</tr>
<tr>
<td>sort</td>
<td>int</td>
<td>Sequence number of the stage in the pipeline </td>
</tr>
<tr>
<td>color</td>
<td>string</td>
<td>Stage color
</td>
</tr>
<tr>
<td>request_id</td>
<td>string</td>
<td>The field will be returned unchanged in the response and will not be saved.</td>
</tr>
<tr>
<td>descriptions</td>
<td>array</td>
<td>Stage descriptions array</td>
</tr>
<tr>
<td>descriptions[0]</td>
<td>object</td>
<td>Stage description object</td>
</tr>
<tr>
<td>descriptions[0][level]</td>
<td>string</td>
<td>Level of users the description is created for</td>
</tr>
<tr>
<td>descriptions[0][description]</td>
<td>string</td>
<td>Stage description</td>
</tr>
</tbody>
</table>
</div>
`}</HTMLBlock>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kommo-api-references",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{subdomain}.kommo.com",
      "variables": {
        "subdomain": {
          "default": "subdomain"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v4/leads/pipelines/{pipeline_id}/statuses/{id}": {
      "patch": {
        "summary": "Pipeline stage edit",
        "description": "This method allows editing a pipeline stage. You can pass stage descriptions (optional).",
        "operationId": "edit-stage",
        "parameters": [
          {
            "name": "pipeline_id",
            "in": "path",
            "description": "Pipeline ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "id",
            "in": "path",
            "description": "Stage ID",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "Request header",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Stage name"
                  },
                  "sort": {
                    "type": "integer",
                    "description": "Sequence number of the stage in the pipeline",
                    "format": "int32"
                  },
                  "color": {
                    "type": "string",
                    "description": "Stage color"
                  },
                  "descriptions": {
                    "type": "array",
                    "description": "Stage descriptions",
                    "items": {
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "ID of the stage description.",
                          "format": "int32"
                        },
                        "level": {
                          "type": "string",
                          "description": "Level of users the description is shown to. Those might be \"newbie\", \"candidate\" and \"master\"."
                        },
                        "description": {
                          "type": "string",
                          "description": "Stage description."
                        }
                      },
                      "type": "object"
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "name": "New status name",
                    "color": "#c1e0ff"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Status has been edited successfully": {
                    "value": "{\n    \"id\": 58221923,\n    \"name\": \"New status name\",\n    \"sort\": 20,\n    \"is_editable\": true,\n    \"pipeline_id\": 6950551,\n    \"color\": \"#c1e0ff\",\n    \"type\": 0,\n    \"account_id\": 31361463,\n    \"request_id\": \"0\",\n    \"_links\": {\n        \"self\": {\n            \"href\": \"https://devteam.kommo.com/api/v4/leads/pipelines/6950551/statuses/58221923\"\n        }\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 58221923,
                      "default": 0
                    },
                    "name": {
                      "type": "string",
                      "example": "New status name"
                    },
                    "sort": {
                      "type": "integer",
                      "example": 20,
                      "default": 0
                    },
                    "is_editable": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "pipeline_id": {
                      "type": "integer",
                      "example": 6950551,
                      "default": 0
                    },
                    "color": {
                      "type": "string",
                      "example": "#c1e0ff"
                    },
                    "type": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "account_id": {
                      "type": "integer",
                      "example": 31361463,
                      "default": 0
                    },
                    "request_id": {
                      "type": "string",
                      "example": "0"
                    },
                    "_links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "object",
                          "properties": {
                            "href": {
                              "type": "string",
                              "example": "https://devteam.kommo.com/api/v4/leads/pipelines/6950551/statuses/58221923"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid data are given. Details are available in the request-response": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "The user is not authorized": {
                    "value": "{\n  \"title\": \"Unauthorized\",\n  \"type\": \"https://httpstatus.es/401\",\n  \"status\": 401,\n  \"detail\": \"Invalid user name or password\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "example": "Unauthorized"
                    },
                    "type": {
                      "type": "string",
                      "example": "https://httpstatus.es/401"
                    },
                    "status": {
                      "type": "integer",
                      "example": 401,
                      "default": 0
                    },
                    "detail": {
                      "type": "string",
                      "example": "Invalid user name or password"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "text/plain": {
                "examples": {
                  "Insufficient rights to call this method": {
                    "value": ""
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```