MCP Control
Задачи · Чтение

Услуги · Запросы · Просмотр · Изменение · Операция

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

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

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

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

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

Recover the immutable create/update result for this Service request after a lost response. Uses the original request and current account, client, module and resource access. This read never repeats a write. not_recorded does not mean an in-flight operation cannot commit.

Параметры запроса
original
Original create or update operation. No arbitrary Action or collection is accepted. обязательно по схеме
Что вернёт команда
status
Whether the exact native structure transaction receipt is currently recorded. обязательно по схеме · string · варианты committed, not_recorded
result
Original committed values and revision, or null. Read edit_context for current state. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа service_request_get_edit_operation
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "original": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "create",
              "description": "Original native structure write operation."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "requestId": {
                  "$ref": "#/$defs/_mcp0"
                },
                "values": {
                  "$ref": "#/$defs/_mcp11"
                }
              },
              "required": [
                "requestId",
                "values"
              ],
              "additionalProperties": false,
              "description": "Exact original arguments, including its requestId and expectedRevision when updating."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "const": "update",
              "description": "Original native structure write operation."
            },
            "arguments": {
              "type": "object",
              "properties": {
                "requestId": {
                  "$ref": "#/$defs/_mcp0"
                },
                "values": {
                  "$ref": "#/$defs/_mcp11"
                },
                "resourceId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160,
                  "pattern": "^[A-Za-z0-9_~:@+.-]+$",
                  "description": "Canonical Service request document identifier from an existing search or edit_context."
                },
                "expectedRevision": {
                  "type": "string",
                  "description": "Exact revision returned by edit_context. Updates reject concurrent changes instead of overwriting them."
                }
              },
              "required": [
                "requestId",
                "values",
                "resourceId",
                "expectedRevision"
              ],
              "additionalProperties": false,
              "description": "Exact original arguments, including its requestId and expectedRevision when updating."
            }
          },
          "required": [
            "operation",
            "arguments"
          ],
          "additionalProperties": false
        }
      ],
      "description": "Original create or update operation. No arbitrary Action or collection is accepted."
    }
  },
  "required": [
    "original"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "minLength": 8,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_-]+$",
      "description": "Unique operation retry identifier. Reuse only for exactly the same structure and field values."
    },
    "_mcp11": {
      "type": "object",
      "properties": {
        "Date": {
          "$ref": "#/$defs/_mcp1"
        },
        "Supplier": {
          "description": "Native Service request.Supplier.",
          "type": "string",
          "maxLength": 2000
        },
        "Items": {
          "$ref": "#/$defs/_mcp7"
        },
        "Status": {
          "$ref": "#/$defs/_mcp10"
        },
        "Amount": {
          "description": "Native Service request.Amount.",
          "type": "number"
        },
        "Tax": {
          "description": "Native Service request.Tax.",
          "type": "number"
        },
        "Storage": {
          "description": "Native Service request.Storage.",
          "type": "string",
          "maxLength": 2000
        },
        "Currency": {
          "description": "Native Service request.Currency.",
          "type": "string",
          "maxLength": 2000
        },
        "Order": {
          "description": "Native Service request.Order.",
          "type": "string",
          "maxLength": 2000
        }
      },
      "additionalProperties": false,
      "description": "Validated native Service request fields. Omitted fields are preserved on update. Nested objects merge; explicitly supplied arrays replace the array."
    },
    "_mcp1": {
      "description": "Native Service request.Date. ISO 8601 with timezone; stored as a timestamp.",
      "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)))$"
    },
    "_mcp7": {
      "description": "Native Service request.Items. Supplied array replaces the whole array.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/_mcp6"
      }
    },
    "_mcp10": {
      "description": "Native Service request.Status. Supplied array replaces the whole array.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "$ref": "#/$defs/_mcp9"
      }
    },
    "_mcp6": {
      "type": "object",
      "properties": {
        "ID": {
          "description": "Native ProductMove_json.ID.",
          "type": "string",
          "maxLength": 2000
        },
        "date": {
          "$ref": "#/$defs/_mcp2"
        },
        "Type": {
          "description": "Native ProductMove_json.Type.",
          "type": "string",
          "maxLength": 2000
        },
        "Product": {
          "description": "Native ProductMove_json.Product.",
          "type": "string",
          "maxLength": 2000
        },
        "specifications": {
          "$ref": "#/$defs/_mcp3"
        },
        "Price": {
          "description": "Native ProductMove_json.Price.",
          "type": "number"
        },
        "Gross": {
          "description": "Native ProductMove_json.Gross.",
          "type": "number"
        },
        "Net": {
          "description": "Native ProductMove_json.Net.",
          "type": "number"
        },
        "amount": {
          "description": "Native ProductMove_json.amount.",
          "type": "number"
        },
        "Tax": {
          "description": "Native ProductMove_json.Tax.",
          "type": "number"
        },
        "time": {
          "description": "Native ProductMove_json.time.",
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "TypeCooking": {
          "description": "Native ProductMove_json.TypeCooking.",
          "type": "string",
          "maxLength": 2000
        },
        "Storage": {
          "description": "Native ProductMove_json.Storage.",
          "type": "string",
          "maxLength": 2000
        },
        "Reasion": {
          "description": "Native ProductMove_json.Reasion.",
          "type": "string",
          "maxLength": 2000
        },
        "Comment": {
          "description": "Native ProductMove_json.Comment.",
          "type": "string",
          "maxLength": 12000
        },
        "typeorders": {
          "$ref": "#/$defs/_mcp4"
        },
        "registry": {
          "$ref": "#/$defs/_mcp5"
        },
        "reserve": {
          "description": "Native ProductMove_json.reserve.",
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "description": "Native Service request.Items."
    },
    "_mcp9": {
      "type": "object",
      "properties": {
        "Number": {
          "description": "Native Status_json.Number.",
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "Date": {
          "$ref": "#/$defs/_mcp8"
        },
        "Name": {
          "description": "Native Status_json.Name.",
          "type": "string",
          "maxLength": 2000
        },
        "Comment": {
          "description": "Native Status_json.Comment.",
          "type": "string",
          "maxLength": 12000
        },
        "user": {
          "description": "Native Status_json.user. Verified workspace ID.",
          "type": "string",
          "maxLength": 2000
        }
      },
      "additionalProperties": false,
      "description": "Native Service request.Status."
    },
    "_mcp2": {
      "description": "Native ProductMove_json.date. ISO 8601 with timezone; stored as a timestamp.",
      "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)))$"
    },
    "_mcp3": {
      "description": "Native ProductMove_json.specifications. Supplied array replaces the whole array.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2000,
        "description": "Native ProductMove_json.specifications."
      }
    },
    "_mcp4": {
      "description": "Native ProductMove_json.typeorders. Supplied array replaces the whole array.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2000,
        "description": "Native ProductMove_json.typeorders."
      }
    },
    "_mcp5": {
      "description": "Native ProductMove_json.registry. Supplied array replaces the whole array.",
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2000,
        "description": "Native ProductMove_json.registry."
      }
    },
    "_mcp8": {
      "description": "Native Status_json.Date. ISO 8601 with timezone; stored as a timestamp.",
      "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)))$"
    }
  }
}
Выход · 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 native structure transaction receipt is currently recorded."
    },
    "result": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "resourceId": {
              "type": "string",
              "description": "Canonical Service request document identifier in the connected company."
            },
            "revision": {
              "type": "string",
              "description": "Exact server revision for optimistic concurrency. Copy it unchanged into update requests."
            },
            "fieldErrors": {
              "description": "Present only when editable fields have incompatible stored values. Those entire fields are omitted from values, not reset. Use this revision and an explicit valid patch to repair them; all other fields remain unchanged.",
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "field": {
                    "type": "string",
                    "description": "Native field path requiring an explicit correction; no stored values are returned."
                  },
                  "expected": {
                    "type": "string",
                    "description": "Required native type or edit bound."
                  },
                  "actual": {
                    "type": "string",
                    "description": "Observed value type, never its content."
                  }
                },
                "required": [
                  "field",
                  "expected",
                  "actual"
                ],
                "additionalProperties": false
              }
            },
            "values": {
              "type": "object",
              "properties": {
                "Date": {
                  "description": "Native Service request.Date. ISO 8601 with timezone; stored as a timestamp.",
                  "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)))$"
                },
                "Supplier": {
                  "description": "Native Service request.Supplier.",
                  "type": "string",
                  "maxLength": 2000
                },
                "Items": {
                  "description": "Native Service request.Items. Supplied array replaces the whole array.",
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "ID": {
                        "description": "Native ProductMove_json.ID.",
                        "type": "string",
                        "maxLength": 2000
                      },
                      "date": {
                        "description": "Native ProductMove_json.date. ISO 8601 with timezone; stored as a timestamp.",
                        "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)))$"
                      },
                      "Type": {
                        "description": "Native ProductMove_json.Type.",
                        "type": "string",
                        "maxLength": 2000
                      },
                      "Product": {
                        "description": "Native ProductMove_json.Product.",
                        "type": "string",
                        "maxLength": 2000
                      },
                      "specifications": {
                        "description": "Native ProductMove_json.specifications. Supplied array replaces the whole array.",
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 2000,
                          "description": "Native ProductMove_json.specifications."
                        }
                      },
                      "Price": {
                        "description": "Native ProductMove_json.Price.",
                        "type": "number"
                      },
                      "Gross": {
                        "description": "Native ProductMove_json.Gross.",
                        "type": "number"
                      },
                      "Net": {
                        "description": "Native ProductMove_json.Net.",
                        "type": "number"
                      },
                      "amount": {
                        "description": "Native ProductMove_json.amount.",
                        "type": "number"
                      },
                      "Tax": {
                        "description": "Native ProductMove_json.Tax.",
                        "type": "number"
                      },
                      "time": {
                        "description": "Native ProductMove_json.time.",
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "TypeCooking": {
                        "description": "Native ProductMove_json.TypeCooking.",
                        "type": "string",
                        "maxLength": 2000
                      },
                      "Storage": {
                        "description": "Native ProductMove_json.Storage.",
                        "type": "string",
                        "maxLength": 2000
                      },
                      "Reasion": {
                        "description": "Native ProductMove_json.Reasion.",
                        "type": "string",
                        "maxLength": 2000
                      },
                      "Comment": {
                        "description": "Native ProductMove_json.Comment.",
                        "type": "string",
                        "maxLength": 12000
                      },
                      "typeorders": {
                        "description": "Native ProductMove_json.typeorders. Supplied array replaces the whole array.",
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 2000,
                          "description": "Native ProductMove_json.typeorders."
                        }
                      },
                      "registry": {
                        "description": "Native ProductMove_json.registry. Supplied array replaces the whole array.",
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "maxLength": 2000,
                          "description": "Native ProductMove_json.registry."
                        }
                      },
                      "reserve": {
                        "description": "Native ProductMove_json.reserve.",
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false,
                    "description": "Native Service request.Items."
                  }
                },
                "Status": {
                  "description": "Native Service request.Status. Supplied array replaces the whole array.",
                  "maxItems": 100,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "Number": {
                        "description": "Native Status_json.Number.",
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "Date": {
                        "description": "Native Status_json.Date. ISO 8601 with timezone; stored as a timestamp.",
                        "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)))$"
                      },
                      "Name": {
                        "description": "Native Status_json.Name.",
                        "type": "string",
                        "maxLength": 2000
                      },
                      "Comment": {
                        "description": "Native Status_json.Comment.",
                        "type": "string",
                        "maxLength": 12000
                      },
                      "user": {
                        "description": "Native Status_json.user. Verified workspace ID.",
                        "type": "string",
                        "maxLength": 2000
                      }
                    },
                    "additionalProperties": false,
                    "description": "Native Service request.Status."
                  }
                },
                "Amount": {
                  "description": "Native Service request.Amount.",
                  "type": "number"
                },
                "Tax": {
                  "description": "Native Service request.Tax.",
                  "type": "number"
                },
                "Storage": {
                  "description": "Native Service request.Storage.",
                  "type": "string",
                  "maxLength": 2000
                },
                "Currency": {
                  "description": "Native Service request.Currency.",
                  "type": "string",
                  "maxLength": 2000
                },
                "Order": {
                  "description": "Native Service request.Order.",
                  "type": "string",
                  "maxLength": 2000
                }
              },
              "additionalProperties": false,
              "description": "Typed editable Service request fields. Credentials and service-owned identifiers are excluded; omitted fields were not present."
            }
          },
          "required": [
            "resourceId",
            "revision",
            "values"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Original committed values and revision, or null. Read edit_context for current state."
    }
  },
  "required": [
    "status",
    "result"
  ],
  "additionalProperties": false
}