MCP Control
Обзор  ›  CRM
CRM · Изменение

CRM · Воронки · Изменение

crm_workspace_pipeline_update
Контактные карточки и телефон

Попробуйте три запроса

Подготовить
  1. Вы указываетеPipelineid
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «CRM / Воронки / Изменение». Для изменения нужны pipelineId, изменяемые поля. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
pipelineId
Параметр
values
Изменяемые поля
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «CRM / Воронки / Изменение» с параметром values.name = Осенняя коллекция. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
values.name
Осенняя коллекция
values.defaultStageId
DEMO-101
pipelineId
DEMO-101
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «CRM / Воронки / Изменение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.

Описание разработчика

Apply reviewed typed UI fields to the current native pipeline revision: questions, conditional questions, checklists, scripts, custom fields, defaults and templates. Existing protected Flow bindings and unrelated fields remain intact. Use crm_pipeline_set_stage_flow for Flow binding. Changes can affect future stage transitions.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
pipelineId
Native pipelineId value; use the value and type returned by the corresponding service. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · string
values
Значения для записи. Состав и вложенность указаны в схеме. обязательно по схеме · object
Что вернёт команда
companyId
Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
result
Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа crm_workspace_pipeline_update
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
    },
    "pipelineId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native pipelineId value; use the value and type returned by the corresponding service."
    },
    "expectedRevision": {
      "type": "string",
      "pattern": "^\\d+:\\d+$",
      "description": "Native expectedRevision value; use the value and type returned by the corresponding service."
    },
    "values": {
      "type": "object",
      "properties": {
        "name": {
          "description": "Native name value; use the value and type returned by the corresponding service.",
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "description": {
          "$ref": "#/$defs/_mcp0"
        },
        "type": {
          "description": "Native type value; use the value and type returned by the corresponding service.",
          "type": "string",
          "maxLength": 80
        },
        "defaultStageId": {
          "description": "Native defaultStageId value; use the value and type returned by the corresponding service.",
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
        },
        "stages": {
          "description": "Native stages value; use the value and type returned by the corresponding service.",
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/_mcp1"
              },
              "name": {
                "$ref": "#/$defs/_mcp2"
              },
              "description": {
                "$ref": "#/$defs/_mcp0"
              },
              "color": {
                "description": "Native color value; use the value and type returned by the corresponding service.",
                "type": "string",
                "pattern": "^#[a-f0-9]{6}$"
              },
              "type": {
                "type": "string",
                "enum": [
                  "first",
                  "intermediate",
                  "completed"
                ],
                "description": "Native type value; use the value and type returned by the corresponding service."
              },
              "leadSort": {
                "description": "Native leadSort value; use the value and type returned by the corresponding service.",
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              },
              "requiredFields": {
                "description": "Native requiredFields value; use the value and type returned by the corresponding service.",
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 180
                }
              },
              "requireProducts": {
                "description": "Native requireProducts value; use the value and type returned by the corresponding service.",
                "type": "boolean"
              },
              "trainingRefs": {
                "description": "Native trainingRefs value; use the value and type returned by the corresponding service.",
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
                }
              },
              "questionItems": {
                "$ref": "#/$defs/_mcp3"
              },
              "checklistItems": {
                "$ref": "#/$defs/_mcp6"
              },
              "scriptItems": {
                "$ref": "#/$defs/_mcp12"
              }
            },
            "required": [
              "id",
              "name",
              "type"
            ],
            "additionalProperties": false
          }
        },
        "config": {
          "description": "Native config value; use the value and type returned by the corresponding service.",
          "type": "object",
          "properties": {
            "timezone": {
              "description": "Native timezone value; use the value and type returned by the corresponding service.",
              "type": "string",
              "maxLength": 100
            },
            "workdays": {
              "description": "Native workdays value; use the value and type returned by the corresponding service.",
              "maxItems": 7,
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 6
              }
            },
            "from": {
              "description": "Native from value; use the value and type returned by the corresponding service.",
              "type": "string",
              "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
            },
            "to": {
              "description": "Native to value; use the value and type returned by the corresponding service.",
              "type": "string",
              "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
            },
            "overnight": {
              "description": "Native overnight value; use the value and type returned by the corresponding service.",
              "type": "boolean"
            },
            "goal": {
              "description": "Native goal value; use the value and type returned by the corresponding service.",
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000
            },
            "kpis": {
              "description": "Native kpis value; use the value and type returned by the corresponding service.",
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "$ref": "#/$defs/_mcp1"
                  },
                  "key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "description": "Native key value; use the value and type returned by the corresponding service."
                  },
                  "target": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1000000000000,
                    "description": "Native target value; use the value and type returned by the corresponding service."
                  }
                },
                "required": [
                  "id",
                  "key",
                  "target"
                ],
                "additionalProperties": false
              }
            },
            "firstTouchMinutes": {
              "description": "Native firstTouchMinutes value; use the value and type returned by the corresponding service.",
              "type": "number",
              "minimum": 0,
              "maximum": 100000000
            },
            "followUpHours": {
              "description": "Native followUpHours value; use the value and type returned by the corresponding service.",
              "type": "number",
              "minimum": 0,
              "maximum": 100000000
            },
            "staleDays": {
              "description": "Native staleDays value; use the value and type returned by the corresponding service.",
              "type": "number",
              "minimum": 0,
              "maximum": 100000000
            },
            "assignmentMode": {
              "description": "Native assignmentMode value; use the value and type returned by the corresponding service.",
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            },
            "managerIds": {
              "description": "Native managerIds value; use the value and type returned by the corresponding service.",
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
              }
            },
            "goalRevenue": {
              "description": "Native goalRevenue value; use the value and type returned by the corresponding service.",
              "type": "number",
              "minimum": 0,
              "maximum": 1000000000000
            }
          },
          "additionalProperties": false
        },
        "customFieldDefinitions": {
          "description": "Native customFieldDefinitions value; use the value and type returned by the corresponding service.",
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/_mcp1"
              },
              "label": {
                "$ref": "#/$defs/_mcp4"
              },
              "type": {
                "type": "string",
                "enum": [
                  "text",
                  "number",
                  "boolean",
                  "date"
                ],
                "description": "Native type value; use the value and type returned by the corresponding service."
              },
              "required": {
                "description": "Native required value; use the value and type returned by the corresponding service.",
                "type": "boolean"
              },
              "defaultValue": {
                "description": "Native defaultValue value; use the value and type returned by the corresponding service.",
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 20000
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              },
              "options": {
                "description": "Native options value; use the value and type returned by the corresponding service.",
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "$ref": "#/$defs/_mcp1"
                    },
                    "label": {
                      "$ref": "#/$defs/_mcp4"
                    }
                  },
                  "required": [
                    "id",
                    "label"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "id",
              "label",
              "type"
            ],
            "additionalProperties": false
          }
        },
        "defaults": {
          "description": "Native defaults value; use the value and type returned by the corresponding service.",
          "type": "object",
          "properties": {
            "customFields": {
              "description": "Native customFields value; use the value and type returned by the corresponding service.",
              "type": "object",
              "propertyNames": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
              },
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 20000
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  }
                ]
              }
            }
          },
          "additionalProperties": false
        },
        "templates": {
          "description": "Native templates value; use the value and type returned by the corresponding service.",
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "$ref": "#/$defs/_mcp1"
              },
              "name": {
                "$ref": "#/$defs/_mcp2"
              },
              "body": {
                "type": "string",
                "maxLength": 20000,
                "description": "Native body value; use the value and type returned by the corresponding service."
              },
              "stageIds": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
                },
                "description": "Native stageIds value; use the value and type returned by the corresponding service."
              },
              "enabled": {
                "type": "boolean",
                "description": "Native enabled value; use the value and type returned by the corresponding service."
              }
            },
            "required": [
              "id",
              "name",
              "body",
              "stageIds",
              "enabled"
            ],
            "additionalProperties": false
          }
        },
        "questionItems": {
          "$ref": "#/$defs/_mcp3"
        },
        "checklistItems": {
          "$ref": "#/$defs/_mcp6"
        },
        "scriptItems": {
          "$ref": "#/$defs/_mcp12"
        }
      },
      "additionalProperties": false,
      "description": "Native values value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "requestId",
    "pipelineId",
    "expectedRevision",
    "values"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
          "description": "Native id value; use the value and type returned by the corresponding service."
        },
        "label": {
          "type": "string",
          "maxLength": 2000,
          "description": "Native label value; use the value and type returned by the corresponding service."
        },
        "description": {
          "description": "Native description value; use the value and type returned by the corresponding service.",
          "type": "string",
          "maxLength": 10000
        },
        "required": {
          "description": "Native required value; use the value and type returned by the corresponding service.",
          "type": "boolean"
        },
        "type": {
          "type": "string",
          "enum": [
            "text",
            "textarea",
            "number",
            "boolean",
            "select",
            "multiselect",
            "date"
          ],
          "description": "Native type value; use the value and type returned by the corresponding service."
        },
        "options": {
          "description": "Native options value; use the value and type returned by the corresponding service.",
          "maxItems": 100,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
                "description": "Native id value; use the value and type returned by the corresponding service."
              },
              "label": {
                "type": "string",
                "maxLength": 2000,
                "description": "Native label value; use the value and type returned by the corresponding service."
              },
              "questionItems": {
                "description": "Native questionItems value; use the value and type returned by the corresponding service.",
                "maxItems": 100,
                "type": "array",
                "items": {
                  "$ref": "#/$defs/__schema0"
                }
              }
            },
            "required": [
              "id",
              "label"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "id",
        "label",
        "type"
      ],
      "additionalProperties": false
    },
    "_mcp0": {
      "description": "Native description value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 10000
    },
    "_mcp1": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
      "description": "Native id value; use the value and type returned by the corresponding service."
    },
    "_mcp2": {
      "type": "string",
      "maxLength": 2000,
      "description": "Native name value; use the value and type returned by the corresponding service."
    },
    "_mcp3": {
      "description": "Native questionItems value; use the value and type returned by the corresponding service.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/__schema0"
      }
    },
    "_mcp6": {
      "description": "Native checklistItems value; use the value and type returned by the corresponding service.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/_mcp5"
      }
    },
    "_mcp12": {
      "description": "Native scriptItems value; use the value and type returned by the corresponding service.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/_mcp11"
      }
    },
    "_mcp4": {
      "type": "string",
      "maxLength": 2000,
      "description": "Native label value; use the value and type returned by the corresponding service."
    },
    "_mcp5": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/_mcp1"
        },
        "label": {
          "$ref": "#/$defs/_mcp4"
        },
        "description": {
          "$ref": "#/$defs/_mcp0"
        },
        "required": {
          "description": "Native required value; use the value and type returned by the corresponding service.",
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "label"
      ],
      "additionalProperties": false
    },
    "_mcp11": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/_mcp1"
        },
        "name": {
          "$ref": "#/$defs/_mcp7"
        },
        "label": {
          "$ref": "#/$defs/_mcp8"
        },
        "body": {
          "$ref": "#/$defs/_mcp9"
        },
        "script": {
          "$ref": "#/$defs/_mcp10"
        },
        "questionItems": {
          "$ref": "#/$defs/_mcp3"
        },
        "checklistItems": {
          "$ref": "#/$defs/_mcp6"
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    "_mcp7": {
      "description": "Native name value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 2000
    },
    "_mcp8": {
      "description": "Native label value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 2000
    },
    "_mcp9": {
      "description": "Native body value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 20000
    },
    "_mcp10": {
      "description": "Native script value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 20000
    }
  }
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "type": "string",
      "description": "Native companyId value; use the value and type returned by the corresponding service."
    },
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native result value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "companyId",
    "result"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    }
  }
}