MCP Control
Задачи · Изменение

FlowMap · Стикеры · Изменение

flowmap_sticker_update
Карточки процесса, соединённые нитями

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

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

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

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

Replace the specified custom sticker definition at the current workspace revision. Supports renaming, translating, changing tags, artwork and category. Already placed copies remain unchanged.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
sticker
Native sticker value; use the value and type returned by the corresponding service. обязательно по схеме
Что вернёт команда
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
Поля и технические схемы
Входные поля и поля ответа flowmap_sticker_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."
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native expectedRevision value; use the value and type returned by the corresponding service."
    },
    "sticker": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "$ref": "#/$defs/_mcp0"
            },
            "name": {
              "$ref": "#/$defs/_mcp1"
            },
            "ru": {
              "$ref": "#/$defs/_mcp2"
            },
            "en": {
              "$ref": "#/$defs/_mcp3"
            },
            "category": {
              "$ref": "#/$defs/_mcp4"
            },
            "tags": {
              "$ref": "#/$defs/_mcp5"
            },
            "kind": {
              "type": "string",
              "const": "image",
              "description": "Native kind value; use the value and type returned by the corresponding service."
            },
            "assetId": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
              "description": "Native assetId value; use the value and type returned by the corresponding service."
            },
            "width": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12000,
              "description": "Native width value; use the value and type returned by the corresponding service."
            },
            "height": {
              "type": "integer",
              "minimum": 1,
              "maximum": 12000,
              "description": "Native height value; use the value and type returned by the corresponding service."
            }
          },
          "required": [
            "id",
            "name",
            "category",
            "tags",
            "kind",
            "assetId",
            "width",
            "height"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "id": {
              "$ref": "#/$defs/_mcp0"
            },
            "name": {
              "$ref": "#/$defs/_mcp1"
            },
            "ru": {
              "$ref": "#/$defs/_mcp2"
            },
            "en": {
              "$ref": "#/$defs/_mcp3"
            },
            "category": {
              "$ref": "#/$defs/_mcp4"
            },
            "tags": {
              "$ref": "#/$defs/_mcp5"
            },
            "kind": {
              "type": "string",
              "const": "text",
              "description": "Native kind value; use the value and type returned by the corresponding service."
            },
            "fill": {
              "default": "#d8f1e9",
              "description": "Native fill value; use the value and type returned by the corresponding service.",
              "type": "string",
              "pattern": "^#[a-fA-F0-9]{6}$"
            }
          },
          "required": [
            "id",
            "name",
            "category",
            "tags",
            "kind",
            "fill"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Native sticker value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "requestId",
    "expectedRevision",
    "sticker"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native id value; use the value and type returned by the corresponding service."
    },
    "_mcp1": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "Native name value; use the value and type returned by the corresponding service."
    },
    "_mcp2": {
      "description": "Native ru value; use the value and type returned by the corresponding service.",
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "_mcp3": {
      "description": "Native en value; use the value and type returned by the corresponding service.",
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "_mcp4": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native category value; use the value and type returned by the corresponding service."
    },
    "_mcp5": {
      "default": [],
      "description": "Native tags value; use the value and type returned by the corresponding service.",
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 60
      }
    }
  }
}
Выход · 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"
          }
        }
      ]
    }
  }
}