Бронирование · Изменение
Бронирование · Объект · Создание
booking_workspace_object_create
Попробуйте три запроса
Подготовить
- Вы указываетеФилиал
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Бронирование / Объект / Создание». Для изменения нужны название, desc. Покажи объект и ожидаемый эффект до выполнения.
- name
- Название
- desc
- Параметр
- price
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Бронирование / Объект / Создание» с параметром kind = stay. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- kind
- stay
- name
- Осенняя коллекция
- unit
- nights
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Бронирование / Объект / Создание» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- ЗапросСохранить исходный ключ
- ОтветПроверить статус
- ПроверкаСверить эффект операции
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Native Booking object_create. Uses the same current company handlers and business rules as booking.sabsus.site. Read all hash-bound chunks and follow native pagination. Recover uncertain writes with booking_workspace_get_operation and the original request ID.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- name
- Native name value from the current Booking workspace. обязательно по схеме · string · до символов 160
- desc
- Native desc value from the current Booking workspace. обязательно по схеме · string · по умолчанию "" · до символов 12000
- price
- Native price value from the current Booking workspace. обязательно по схеме · number · минимум 0 · максимум 10000000
- capacity
- Native capacity value from the current Booking workspace. обязательно по схеме · integer · минимум 1 · максимум 1000
- kind
- Native kind value from the current Booking workspace. обязательно по схеме · string · по умолчанию "stay" · варианты stay, car, room
- unit
- Native unit value from the current Booking workspace. обязательно по схеме · string · по умолчанию "nights"
- available
- Native available value from the current Booking workspace. обязательно по схеме · boolean · по умолчанию true
- checkInStart
- Native checkInStart value from the current Booking workspace. обязательно по схеме · string · по умолчанию "15:00"
- checkOutTime
- Native checkOutTime value from the current Booking workspace. обязательно по схеме · string · по умолчанию "11:00"
- latestCheckIn
- Native latestCheckIn value from the current Booking workspace. обязательно по схеме · string · по умолчанию "22:00"
- latestCheckInNextDay
- Native latestCheckInNextDay value from the current Booking workspace. обязательно по схеме · boolean · по умолчанию false
- photoSource
- Native photoSource value from the current Booking workspace. необязательно · object
- establishmentId
- Native establishmentId value from the current Booking workspace. обязательно по схеме · string
- timezone
- Native timezone value from the current Booking workspace. обязательно по схеме · string · до символов 100
Что вернёт команда
- companyId
- Verified current native company. обязательно по схеме · string
- result
- Native Booking receipt or hash-bound JSON chunk. Historic completed receipts, current occupancy and provider confirmation are distinct. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"requestId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Native requestId value from the current Booking workspace."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"description": "Native name value from the current Booking workspace."
},
"desc": {
"default": "",
"description": "Native desc value from the current Booking workspace.",
"type": "string",
"maxLength": 12000
},
"price": {
"type": "number",
"minimum": 0,
"maximum": 10000000,
"description": "Native price value from the current Booking workspace."
},
"capacity": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"description": "Native capacity value from the current Booking workspace."
},
"kind": {
"default": "stay",
"description": "Native kind value from the current Booking workspace.",
"type": "string",
"enum": [
"stay",
"car",
"room"
]
},
"unit": {
"default": "nights",
"description": "Native unit value from the current Booking workspace.",
"type": "string",
"const": "nights"
},
"available": {
"default": true,
"description": "Native available value from the current Booking workspace.",
"type": "boolean"
},
"checkInStart": {
"default": "15:00",
"description": "Native checkInStart value from the current Booking workspace.",
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"checkOutTime": {
"default": "11:00",
"description": "Native checkOutTime value from the current Booking workspace.",
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"latestCheckIn": {
"default": "22:00",
"description": "Native latestCheckIn value from the current Booking workspace.",
"type": "string",
"pattern": "^([01]\\d|2[0-3]):[0-5]\\d$"
},
"latestCheckInNextDay": {
"default": false,
"description": "Native latestCheckInNextDay value from the current Booking workspace.",
"type": "boolean"
},
"photoSource": {
"description": "Native photoSource value from the current Booking workspace.",
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"image",
"file"
],
"description": "Native kind value from the current Booking workspace."
},
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Native id value from the current Booking workspace."
}
},
"required": [
"kind",
"id"
],
"additionalProperties": false
},
"establishmentId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native establishmentId value from the current Booking workspace."
},
"timezone": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"description": "Native timezone value from the current Booking workspace."
}
},
"required": [
"requestId",
"name",
"desc",
"price",
"capacity",
"kind",
"unit",
"available",
"checkInStart",
"checkOutTime",
"latestCheckIn",
"latestCheckInNextDay",
"establishmentId",
"timezone"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"description": "Verified current native company."
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native Booking receipt or hash-bound JSON chunk. Historic completed receipts, current occupancy and provider confirmation are distinct."
}
},
"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"
}
}
]
}
}
}