метод REST scope: booking

booking.v1.resource.get

Получить ресурс

Кто может выполнять: любой пользователь

Описание

Метод booking.v1.resource.get возвращает информацию о ресурсе по идентификатору.

Параметры

id integer обязательный

Идентификатор ресурса.
Можно получить в методах booking.v1.resource.add и booking.v1.resource.list

Примеры запроса

curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"id":15}' \
https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/booking.v1.resource.get

Ответ

HTTP-статус: 200

{
    "result": {
        "resource": {
            "confirmationCounterDelay": 10800,
            "confirmationNotificationDelay": 86400,
            "confirmationNotificationRepetitions": null,
            "confirmationNotificationRepetitionsInterval": 10800,
            "delayedCounterDelay": 300,
            "delayedNotificationDelay": 300,
            "description": null,
            "id": 15,
            "infoNotificationDelay": null,
            "isConfirmationNotificationOn": "Y",
            "isDelayedNotificationOn": "N",
            "isFeedbackNotificationOn": "N",
            "isInfoNotificationOn": "Y",
            "isMain": "Y",
            "isReminderNotificationOn": "Y",
            "name": "Название",
            "reminderNotificationDelay": -1,
            "templateTypeConfirmation": "animate",
            "templateTypeDelayed": "animate",
            "templateTypeFeedback": "animate",
            "templateTypeInfo": "inanimate",
            "templateTypeReminder": "base",
            "typeId": 1
        }
    },
    "time": {
        "start": 1746539524.292041,
        "finish": 1746539524.356627,
        "duration": 0.06458592414855957,
        "processing": 0.018703937530517578,
        "date_start": "2025-05-06T16:52:04+03:00",
        "date_finish": "2025-05-06T16:52:04+03:00",
        "operating_reset_at": 1746540124,
        "operating": 0
    }
}

Возвращаемые данные

result object

Корневой элемент ответа. Содержит информацию о полях ресурса. Структура описана ниже

time time

Информация о времени выполнения запроса

Обработка ошибок

HTTP-статус: 400

{
    "error": 1021,
    "error_description": "Resource not found"
}
Код Описание Значение
1009 Resource not found Ресурс с таким id не найден
100 Could not find value for parameter {id} Не передан обязательный параметр

Что будем искать? Например,Продвижение

Этот сайт использует куки-файлы. Оставаясь на сайте, Вы соглашаетесь на их использование. Для получения дополнительной информации, пожалуйста, ознакомьтесь с политикой в отношении персональных данных.