Задачи · Изменение
FlowMap · Стикеры · Создание
flowmap_sticker_create
Попробуйте три запроса
Подготовить
- Вы указываетеОбъект
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «FlowMap / Стикеры / Создание». Для изменения нужны sticker. Покажи объект и ожидаемый эффект до выполнения.
- sticker
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «FlowMap / Стикеры / Создание» с параметром expectedRevision = 4. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- expectedRevision
- 4
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «FlowMap / Стикеры / Создание» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Add an image or bilingual text sticker to the shared company library and chosen category. For images first import authorized media, or choose an existing company Flowmap asset ID. Use a unique sticker ID. Visible in the native editor.
Параметры запроса
- 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
Поля и технические схемы

Вход · 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"
}
}
]
}
}
}