Служебные инструменты · fileman

Файлы и структура сайта · изменения · Изменение · fileman_sticker_settings_replace

fileman_site_fileman_m009_writeИзменение

Действия модуля fileman.

Действия

В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.

Заменить настройки стикеров

fileman_sticker_settings_replace

Действия модуля fileman.

settings
объект · обязательный параметр
roles
массив · обязательный параметр
expected_revision
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
acknowledge_global_sticker_change
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "settings": {
      "type": "object",
      "properties": {
        "hide_bottom": {
          "type": "boolean"
        },
        "use_hotkeys": {
          "type": "boolean"
        },
        "start_width": {
          "type": "integer",
          "minimum": 280,
          "maximum": 2000
        },
        "start_height": {
          "type": "integer",
          "minimum": 160,
          "maximum": 2000
        },
        "default_task_id": {
          "type": "integer",
          "minimum": 1,
          "maximum": 2147483647
        }
      },
      "required": [
        "hide_bottom",
        "use_hotkeys",
        "start_width",
        "start_height",
        "default_task_id"
      ],
      "additionalProperties": false
    },
    "roles": {
      "type": "array",
      "maxItems": 128,
      "items": {
        "type": "object",
        "properties": {
          "group_id": {
            "type": "integer",
            "minimum": 2,
            "maximum": 2147483647
          },
          "task_id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "required": [
          "group_id",
          "task_id"
        ],
        "additionalProperties": false
      }
    },
    "expected_revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "confirm": {
      "type": "boolean"
    },
    "acknowledge_global_sticker_change": {
      "type": "boolean"
    }
  },
  "required": [
    "settings",
    "roles",
    "expected_revision",
    "confirm",
    "acknowledge_global_sticker_change"
  ],
  "additionalProperties": false
}

Скачать исходное примечание