---
updatedAt: 2025-06-08T15:28:46.000Z
agentTools:
  projectIndex: https://es-developers.kommo.com/llms.txt
---

# Editar un pipeline

Este método permite editar el pipeline en la cuenta.

**Limitaciones**\
El método está disponible solo para usuarios administradores.

**Authorization type**\
OAuth 2.0 con Access Token. Revisa nuestro ejemplo paso a paso.

## Parámetros del cuerpo/respuesta

Para editar un pipeline, se debe pasar al menos un parámetro

<HTMLBlock>{`
<div class="term_table_wrapper">
<table class="term_table">
<thead><tr>
<th style="width: 15%;">Parámetro</th>
<th style="width: 20%;">Tipo de dato</th>
<th style="width: 65%;">Descripción</th>
</tr></thead>
<tbody>
<tr>
<td>nombre</td>
<td>string</td>
<td>Descripción</td>
</tr>
<tr>
<td>sort</td>
<td>int</td>
<td>Número de secuencia del pipeline en la lista de pipelines</td>
</tr>
<tr>
<td>is_main</td>
<td>bool</td>
<td>Define si el pipeline es el principal para la cuenta</td>
</tr>
<tr>
<td>is_unsorted_on</td>
<td>bool</td>
<td>Define si los Leads entrantes están habilitados</td>
</tr>
</tbody>
</table>
</div>
`}</HTMLBlock>

**Encabezado de tipo de datos cuando la solicitud es exitosa**\
Content-Type: application/hal+json.

**Encabezado de tipo de datos en caso de un error**\
Content-Type: application/problem+json.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kommo-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{subdominio}.kommo.com",
      "variables": {
        "subdominio": {
          "default": "subdominio"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v4/leads/pipelines/{id}": {
      "patch": {
        "summary": "Editar un pipeline",
        "description": "Este método permite editar el pipeline en la cuenta.",
        "operationId": "editar-un-pipeline",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID del pipeline",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "Encabezado de la solicitud",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Nombre del pipeline"
                  },
                  "sort": {
                    "type": "integer",
                    "description": "Define el orden se visualización del pipeline en la lista de pipelines",
                    "format": "int32"
                  },
                  "is_main": {
                    "type": "boolean",
                    "description": "Define si el pipeline es principal para la cuenta"
                  },
                  "is_unsorted_on": {
                    "type": "boolean",
                    "description": "Define si los leads entrantes están habilitados."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Pipeline añadido con éxito": {
                    "value": "{\n    \"id\": 6964299,\n    \"name\": \"Nombre del nuevo pipeline\",\n    \"sort\": 100,\n    \"is_main\": false,\n    \"is_unsorted_on\": false,\n    \"is_archive\": false,\n    \"account_id\": 31361463,\n    \"request_id\": \"0\",\n    \"_links\": {\n        \"self\": {\n            \"href\": \"https://devteam.kommo.com/api/v4/leads/pipelines/6964299\"\n        }\n    },\n    \"_embedded\": {\n        \"statuses\": [\n            {\n                \"id\": 58220127,\n                \"name\": \"Contacto inicial\",\n                \"sort\": 20,\n                \"is_editable\": true,\n                \"pipeline_id\": 6964299,\n                \"color\": \"#fffeb2\",\n                \"type\": 0,\n                \"account_id\": 31361463,\n                \"_links\": {\n                    \"self\": {\n                        \"href\": \"https://devteam.kommo.com/api/v4/leads/pipelines/6964299/statuses/58220127\"\n                    }\n                }\n            },\n            {\n                \"id\": 142,\n                \"name\": \"Nombre personalizado del estado de los leads ganados\",\n                \"sort\": 10000,\n                \"is_editable\": false,\n                \"pipeline_id\": 6964299,\n                \"color\": \"#CCFF66\",\n                \"type\": 0,\n                \"account_id\": 31361463,\n                \"_links\": {\n                    \"self\": {\n                        \"href\": \"https://devteam.kommo.com/api/v4/leads/pipelines/6964299/statuses/142\"\n                    }\n                }\n            },\n            {\n                \"id\": 143,\n                \"name\": \"Cerrado - perdido\",\n                \"sort\": 11000,\n                \"is_editable\": false,\n                \"pipeline_id\": 6964299,\n                \"color\": \"#D5D8DB\",\n                \"type\": 0,\n                \"account_id\": 31361463,\n                \"_links\": {\n                    \"self\": {\n                        \"href\": \"https://devteam.kommo.com/api/v4/leads/pipelines/6964299/statuses/143\"\n                    }\n                }\n            }\n        ]\n    }\n} "
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 6964299,
                      "default": 0
                    },
                    "name": {
                      "type": "string",
                      "example": "Nombre del nuevo pipeline"
                    },
                    "sort": {
                      "type": "integer",
                      "example": 100,
                      "default": 0
                    },
                    "is_main": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "is_unsorted_on": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "is_archive": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    },
                    "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/6964299"
                            }
                          }
                        }
                      }
                    },
                    "_embedded": {
                      "type": "object",
                      "properties": {
                        "statuses": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 58220127,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Contacto inicial"
                              },
                              "sort": {
                                "type": "integer",
                                "example": 20,
                                "default": 0
                              },
                              "is_editable": {
                                "type": "boolean",
                                "example": true,
                                "default": true
                              },
                              "pipeline_id": {
                                "type": "integer",
                                "example": 6964299,
                                "default": 0
                              },
                              "color": {
                                "type": "string",
                                "example": "#fffeb2"
                              },
                              "type": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "account_id": {
                                "type": "integer",
                                "example": 31361463,
                                "default": 0
                              },
                              "_links": {
                                "type": "object",
                                "properties": {
                                  "self": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://devteam.kommo.com/api/v4/leads/pipelines/6964299/statuses/58220127"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Datos transmitidos inválidos. Detalles disponibles en la solicitud-respuesta": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "text/plain": {
                "examples": {
                  "El usuario no está autorizado": {
                    "value": "{\n  \"title\": \"No autorizado\",\n  \"type\": \"https://httpstatus.es/401\",\n  \"status\": 401,\n  \"detail\": \"Nombre de usuario o contraseña incorrectos\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "example": "No autorizado"
                    },
                    "type": {
                      "type": "string",
                      "example": "https://httpstatus.es/401"
                    },
                    "status": {
                      "type": "integer",
                      "example": 401,
                      "default": 0
                    },
                    "detail": {
                      "type": "string",
                      "example": "Nombre de usuario o contraseña incorrectos"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "text/plain": {
                "examples": {
                  "Permisos insuficientes para llamar a este método": {
                    "value": ""
                  }
                }
              }
            }
          },
          "429": {
            "description": "429",
            "content": {
              "text/plain": {
                "examples": {
                  "Demasiadas solicitudes": {
                    "value": ""
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "text/plain": {
                "examples": {
                  "Error interno del servidor": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```