Коммуникации · Изменение
Социальные сети · Airbnb · Принятие решения
social_workspace_airbnb_decide
Попробуйте три запроса
Подготовить
- Вы указываетеДиалог
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Социальные сети / Airbnb / Принятие решения». Для изменения нужны диалог, threadId. Покажи объект и ожидаемый эффект до выполнения.
- conversationId
- Диалог
- threadId
- Параметр
- eventId
- Мероприятие
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Социальные сети / Airbnb / Принятие решения» с параметром decision = preapprove. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- decision
- preapprove
- reason
- dates_not_available
- conversationId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Социальные сети / Airbnb / Принятие решения» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения. Прочитайте актуальную версию записи перед подготовкой запроса.
Описание разработчика
Submit the explicitly authorized native Airbnb inquiry/reservation decision at its exact event revision. May accept/decline a booking or issue a priced special offer; use only after reviewing the actual request and guest.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- conversationId
- Native conversationId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- threadId
- Native threadId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- eventId
- Native eventId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- revision
- Текущая версия выбранной записи. обязательно по схеме · string
- decision
- Native decision value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты preapprove, special_offer, accept, decline
- blockInstantBooking
- Native blockInstantBooking value; use the value and type returned by the corresponding service. необязательно · boolean
- totalPrice
- Native totalPrice value; use the value and type returned by the corresponding service. необязательно · integer · максимум 9007199254740991
- currency
- Native currency value; use the value and type returned by the corresponding service. необязательно · string
- reason
- Native reason value; use the value and type returned by the corresponding service. необязательно · string · варианты dates_not_available, not_a_good_fit, waiting_for_better_reservation, not_comfortable
- guestMessage
- Native guestMessage value; use the value and type returned by the corresponding service. необязательно · string · до символов 2000
- airbnbMessage
- Native airbnbMessage value; use the value and type returned by the corresponding service. необязательно · string · до символов 2000
Что вернёт команда
- companyId
- Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- result
- Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"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."
},
"conversationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Native conversationId value; use the value and type returned by the corresponding service."
},
"threadId": {
"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 threadId value; use the value and type returned by the corresponding service."
},
"eventId": {
"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 eventId value; use the value and type returned by the corresponding service."
},
"revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Native revision value; use the value and type returned by the corresponding service."
},
"decision": {
"type": "string",
"enum": [
"preapprove",
"special_offer",
"accept",
"decline"
],
"description": "Native decision value; use the value and type returned by the corresponding service."
},
"blockInstantBooking": {
"description": "Native blockInstantBooking value; use the value and type returned by the corresponding service.",
"type": "boolean"
},
"totalPrice": {
"description": "Native totalPrice value; use the value and type returned by the corresponding service.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"currency": {
"description": "Native currency value; use the value and type returned by the corresponding service.",
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"reason": {
"description": "Native reason value; use the value and type returned by the corresponding service.",
"type": "string",
"enum": [
"dates_not_available",
"not_a_good_fit",
"waiting_for_better_reservation",
"not_comfortable"
]
},
"guestMessage": {
"description": "Native guestMessage value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 2000
},
"airbnbMessage": {
"description": "Native airbnbMessage value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 2000
}
},
"required": [
"requestId",
"conversationId",
"threadId",
"eventId",
"revision",
"decision"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"description": "Native companyId value; use the value and type returned by the corresponding service."
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native result value; use the value and type returned by the corresponding service."
}
},
"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"
}
}
]
}
}
}