MCP Control
Сотрудники · Изменение

Сотрудник · Запросы · Создание

worker_request_create
Контактные карточки и телефон

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

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

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

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

Submit the authenticated employee’s native request to their configured manager. Leave, availability, shift swap, attendance correction, advance, expense, certificate and questions are supported. Creates a pending task only; no payment or leave approval.

Параметры запроса
kind
Native kind value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты leave, availability, swap, time-correction, advance, expense, certificate, question
note
Native note value; use the value and type returned by the corresponding service. обязательно по схеме · string · до символов 4000
from
Native from value; use the value and type returned by the corresponding service. необязательно · string
to
Native to value; use the value and type returned by the corresponding service. необязательно · string
amount
Native amount value; use the value and type returned by the corresponding service. необязательно · number · минимум 0 · максимум 10000000
currency
Native currency value; use the value and type returned by the corresponding service. необязательно · string
target
Native target value; use the value and type returned by the corresponding service. необязательно · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
result
Native Worker outcome for the authenticated employee only. A request is pending until its manager processes it. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа worker_request_create
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "leave",
        "availability",
        "swap",
        "time-correction",
        "advance",
        "expense",
        "certificate",
        "question"
      ],
      "description": "Native kind value; use the value and type returned by the corresponding service."
    },
    "note": {
      "type": "string",
      "minLength": 3,
      "maxLength": 4000,
      "description": "Native note value; use the value and type returned by the corresponding service."
    },
    "from": {
      "description": "Native from value; use the value and type returned by the corresponding service.",
      "type": "string",
      "format": "date",
      "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])))$"
    },
    "to": {
      "description": "Native to value; use the value and type returned by the corresponding service.",
      "type": "string",
      "format": "date",
      "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])))$"
    },
    "amount": {
      "description": "Native amount value; use the value and type returned by the corresponding service.",
      "type": "number",
      "minimum": 0,
      "maximum": 10000000
    },
    "currency": {
      "description": "Native currency value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^[A-Z]{3}$"
    },
    "target": {
      "description": "Native target value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$"
    },
    "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."
    }
  },
  "required": [
    "kind",
    "note",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native Worker outcome for the authenticated employee only. A request is pending until its manager processes it."
    }
  },
  "required": [
    "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"
          }
        }
      ]
    }
  }
}