MCP Control
Расписание · Чтение

Расписание · Цены · Результат операции «изменение»

schedule_prices_get_patch_result
Часы и календарь у стойки записи

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

Получить данные
  1. Вы указываетеОбъект
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Расписание / Цены / Результат операции «изменение»» выполни чтение в текущей компании. Выведи кратко: статус, результат.
Что искать в ответе
status
Статус
result
Результат
Уточнить условия
  1. Вы указываетеЗадача
  2. ПомощникСхема входа
  3. Вы получаетеУсловия чтения
Запрос в чат
Для «Расписание / Цены / Результат операции «изменение»» перечисли допустимые параметры исходные данные. Уточни, какие значения нужны для моей задачи, до запроса данных.
Параметры примера
original
Исходные данные
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Расписание / Цены / Результат операции «изменение»» объясни статус, результат. Отметь отсутствующие значения.
Поля для проверки
status
Статус
result
Результат
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании.

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

Read the exact durable result of one Schedule price patch after a lost response. This never changes or resends prices; not_recorded does not prove an in-flight write cannot commit.

Параметры запроса
original
Exact original schedule_prices_patch arguments, including its requestId. обязательно по схеме · object
Что вернёт команда
status
Whether the exact price patch has a durable committed receipt. обязательно по схеме · string · варианты committed, not_recorded
result
Original patch result, or null before commit. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа schedule_prices_get_patch_result
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "original": {
      "type": "object",
      "properties": {
        "scheduleId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_~:@+.-]+$",
          "description": "Exact native Schedule document ID from schedules_search."
        },
        "expectedRevision": {
          "type": "string",
          "pattern": "^\\d{1,12}:\\d{1,9}$",
          "description": "Exact revision returned by schedule_prices_list; protects every untouched price."
        },
        "updates": {
          "default": [],
          "description": "Change selected existing entries by their stable indexes at expectedRevision.",
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "index": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000,
                "description": "Exact zero-based index returned by schedule_prices_list at expectedRevision."
              },
              "values": {
                "type": "object",
                "properties": {
                  "price": {
                    "description": "Replacement native numeric price; omission preserves the current price.",
                    "type": "number",
                    "minimum": 0
                  },
                  "start": {
                    "description": "Replacement interval start with timezone; omission preserves the current start.",
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "finish": {
                    "description": "Replacement interval finish with timezone; omission preserves the current finish.",
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  "comment": {
                    "description": "Replacement native comment; omission preserves it.",
                    "type": "string",
                    "maxLength": 12000
                  },
                  "source": {
                    "description": "Replacement native source; omission preserves it.",
                    "type": "string",
                    "maxLength": 2000
                  }
                },
                "additionalProperties": false,
                "description": "Only fields supplied for this one price entry change."
              }
            },
            "required": [
              "index",
              "values"
            ],
            "additionalProperties": false
          }
        },
        "appends": {
          "default": [],
          "description": "Add new native intervals after the existing list; no existing entry is removed.",
          "maxItems": 20,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "description": "Optional native Price ID; leave absent when the schedule does not use one.",
                "type": "string",
                "maxLength": 2000
              },
              "price": {
                "type": "number",
                "minimum": 0,
                "description": "Native numeric price for this new interval."
              },
              "start": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "New interval start with timezone."
              },
              "finish": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                "description": "New interval finish with timezone."
              },
              "comment": {
                "description": "Optional native comment.",
                "type": "string",
                "maxLength": 12000
              },
              "source": {
                "description": "Optional native source.",
                "type": "string",
                "maxLength": 2000
              }
            },
            "required": [
              "price",
              "start",
              "finish"
            ],
            "additionalProperties": false
          }
        },
        "requestId": {
          "type": "string",
          "minLength": 8,
          "maxLength": 128,
          "pattern": "^[A-Za-z0-9_-]+$",
          "description": "Stable ID for this exact patch. Reuse it after an uncertain response."
        }
      },
      "required": [
        "scheduleId",
        "expectedRevision",
        "updates",
        "appends",
        "requestId"
      ],
      "additionalProperties": false,
      "description": "Exact original schedule_prices_patch arguments, including its requestId."
    }
  },
  "required": [
    "original"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "committed",
        "not_recorded"
      ],
      "description": "Whether the exact price patch has a durable committed receipt."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "scheduleId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9_~:@+.-]+$",
              "description": "Native Schedule ID that was changed."
            },
            "revision": {
              "type": "string",
              "pattern": "^\\d{1,12}:\\d{1,9}$",
              "description": "Committed Schedule revision. Use it for the next price page or patch."
            },
            "priceCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "description": "Total native price entries after this patch."
            },
            "updatedIndices": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "description": "Existing indexes changed in place."
            },
            "appendedIndices": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "description": "New indexes appended after all prior entries."
            }
          },
          "required": [
            "scheduleId",
            "revision",
            "priceCount",
            "updatedIndices",
            "appendedIndices"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original patch result, or null before commit."
    }
  },
  "required": [
    "status",
    "result"
  ],
  "additionalProperties": false
}