Bookker API Documentation logo Bookker API Documentation

Edición de reserva de comedor

Última modificación: 24/06/2021

Editar reserva de comedor

En la reserva de comedor sólo se puede modificar el turno dentro del mismo día que ocurre la reserva.

Acceso al edificio

Dentro de la información de la reserva hay un campo llamado “buildingAccessStatus”, que indica si se ha concedido al usuario acceso al edificio para esa reserva.

Este campo tiene tres posibles valores:

Request

HTTP request
PUT /api/v1/users/me/bookings/dinningareaseats/{bookingId}
PUT /api/v1/users/{userId}/bookings/dinningareaseats/{bookingId}
Headers
Header Value Required
Authorization Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFM1MT… true
Body

En el cuerpo de la solicitud, proporcione una representación JSON del objeto DinningAreaBooking.

Property Type Description Required
Booking DinningAreaBooking Datos que se quieren modificar de la reserva. true

Response

Si se han conseguido editar la reserva, se devuelve un código 200 con la información de las misma.

HTTPS/1.1 200 OK
Content-type: application/json

{
    "id": "a4210d83-1c8b-4cb1-b1a2-87678f131266",
    "multipleBookingId": "44b41efe-d855-44a7-84e1-deed11e4c20b",
    "startDate": 1602424800000,
    "endDate": 1602428400000,
    "duration": 3600000,
    "status": "PENDING",
    "accessControlType": "ORGANIZER",
    "creator": {
        "id": "304a9cba-ad72-49a1-8782-9ac9a36cd8e7",
        "name": "Aitor",
        "surname": "Jupiter",
        "alias": "072919a68fbd42aead115dbee1b02620",
        "email": "aitor.gil@bookkercorp.com",
        "organization": {
            "id": "8aee218a-fce2-4900-9410-00f485a2729e"
        },
        "userRule": {
            "id": "304a9cba-ad72-49a1-8782-9ac9a36cd8e7"
        },
        "mobileRole": {
            "id": "1dfde059-da65-49c9-8db3-dccc4f3292e4"
        },
        "canBeSearched": false,
        "type": "BOOKKER_INTERNAL",
        "userLanguage": "es"
    },
    "organizer": {
        "id": "304a9cba-ad72-49a1-8782-9ac9a36cd8e7",
        "name": "Aitor",
        "surname": "Jupiter",
        "alias": "072919a68fbd42aead115dbee1b02620",
        "email": "aitor.gil@bookkercorp.com",
        "organization": {
            "id": "8aee218a-fce2-4900-9410-00f485a2729e"
        },
        "userRule": {
            "id": "304a9cba-ad72-49a1-8782-9ac9a36cd8e7"
        },
        "mobileRole": {
            "id": "1dfde059-da65-49c9-8db3-dccc4f3292e4"
        },
        "canBeSearched": false,
        "type": "BOOKKER_INTERNAL",
        "userLanguage": "es"
    },
    "resource": {
        "id": "729ec5ec-76df-41a7-bf82-9c6b8296b237",
        "name": "B-P1-COMEDOR-10",
        "posterCode": "B-P1-COMEDOR-10",
        "image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
        "approachable": false,
        "floor": {
            "id": "14ab4017-1261-46ff-af05-eadf5d3d69e8",
            "name": "Planta 1",
            "floorNumber": 1,
            "image": "8aee218a-fce2-4900-9410-00f485a2729e/buildings/758a81f3-f171-404b-b48c-c922828aed49/floors/14ab4017-1261-46ff-af05-eadf5d3d69e8/maps/40d25abc74f043f4afff218f02d2e024.png",
            "building": {
                "id": "758a81f3-f171-404b-b48c-c922828aed49",
                "name": "Jupiter Building",
                "address": {
                    "country": "ES",
                    "city": "Madrid",
                    "address": "Avenida Gran Vía, 85",
                    "coordinates": null
                },
                "organization": {
                    "id": "8aee218a-fce2-4900-9410-00f485a2729e"
                },
                "timezone": "Europe/Madrid",
                "status": "ACTIVATED"
            },
            "status": "ACTIVATED",
            "type": "OFFICE",
            "visible": true
        },
        "subcategory": {
            "id": "ddbf3210-e907-45eb-8b33-efb649b00b02",
            "name": "Plaza de comedor",
            "category": "DINNING_AREA",
            "organization": {
                "id": "8aee218a-fce2-4900-9410-00f485a2729e"
            },
            "deleteHistorial": false,
            "hideBookings": false,
            "canBeSearched": true,
            "shifts": false
        },
        "visible": true
    },
    "resourceType": "DINNING_AREA",
    "buildingAccessStatus": "PENDING",
    "dinningAreaRuleShift": {
        "id": "f8876802-45d6-4b2c-8057-c74311782440",
        "dinningAreaRuleId": "758a81f3-f171-404b-b48c-c922828aed49",
        "startMs": 46800000,
        "endMs": 50400000
    }
}

DinningAreaBooking

{
    "dinningAreaRuleShift": {
        "id": "f8876802-45d6-4b2c-8057-c74311782440"
    }
}