Comprobar disponibilidad con rango de fechas
Última modificación: 13/11/2024
Comprobar disponibilidad
Comprueba la disponibilidad de los espacios teniendo en cuenta los siguientes criterios:
-
Si el usuario tiene acceso al recurso (grupos).
-
Si el recurso tiene las caracteristicas seleccionadas por el usuario (opcional).
-
Si se cumplen las reglas del recurso (antelación de la reserva, horarios…).
-
Si el recurso está libre dentro del rango de fechas y horas que ha selecionado el usuario.
La petición devolverá un máximo de 10 opciones arbitrariamente elegidas.
FindSlot
La reserva Find slot anñade al proceso de reserva de un espacio un sistema de votación que permite a los invitados votar por la opción que más les convenga. Para poder realizar este tipo de reserva es imprescindible marcar al menos a uno de los invitados como invitado requerido.
Una vez el organizador de la reserva active esta opción, se le requerirá seleccionar el rango de fechas para el que se mostrarán espacios disponibles (el rango máximo de fechas se podrá configurar desde panel, por defecto debe ser de 10). De entre los resultados el organizador tendrá que elegir tres (valor también configurable desde el panel de gestión), que serán de entre los cuales los invitados podrán votar.
Los invitados podrán votar por la opción u opciones que prefieran dentro de un plazo de entre una hora y siete días (valores configurables). Una vez finalizado este plazo, siempre que todos los invitados requeridos hayan votado, se seleccionará automáticamente la opción más votada por ellos como opción definitiva con la que se hará la reserva. En caso de empate entre más de una opción, los votos de los invitados opcionales se tendrán en cuenta para desempatar. Y en caso de empate de votos tanto de invitados requeridos como opcionales, la selección la hará el sistema de forma aleatoria. Si por el contrario, no existe una opción en la cual todos los invitados requeridos han aceptado, la votación se cancelará automáticamente.
Independientemente de todo lo anterior, el organizador siempre podrá seleccionar la opción definitiva con la que se hará la reserva, no teniendo esta por qué ser la más votada.
¡Importante!
Para activar la función de FindSlot en la llamada, se deberá mandar el parámetro opcional "isFindSlot" con valor "true".
HTTP request
Spaces
GET /api/v1/users/me/buildings/{buildingId}/spaces/subcategories/{subcategoryId}/free/findslot
GET /api/v1/users/{userId}/buildings/{buildingId}/spaces/subcategories/{subcategoryId}/free/findslot
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFM1MT… | true |
Params
| Param | Value | Required |
|---|---|---|
| floorId | El id de la planta en la que se quiere buscar | false |
| features | Array de identificadores de las caracterÃsticas por las que se quiere filtrar. | false |
| maxCostPerHour | BigDecimal (32.01) | false |
| capacity | Capacidad máxima de los espacios. | false |
| bookingDay | List |
true |
| duration | La duración de las reservas | true |
| isFindSlot | Indica si la llamada se realiza para comprobar disponibilidad para reservas Find Slot o no. Si no se manda, por defecto es “false”. | false |
| hasReservables | Booleano que indica si se debe filtrar por recursos que tienen servicios asociados. Admite tres opciones: 1. Si no se envía. El filtro no se aplica y se devuelven tanto los recursos con servicios como los que no tienen. 2. Si se envía a true. El filtro se aplica devolviendo sólo recursos con servicios asociados. 3.Si se envía a false. El filtro se aplica devolviendo sólo recursos que no tienen servicios asociados. |
false |
¡Importante! - Ejemplo de uso del parámetro bookingDays.
Para utilizar una lista en los parámetros de una petición GET hay que hacerlo de la siguiente forma:
http://localhost:9010/api/v1/users/{userId}/buildings/{buildingId}/workstations/subcategories/{subcategoryId}/free/findslot?bookingDays[0].startDate=1561708800000&bookingDays[0].endDate=1561712400000&bookingDays[1].startDate=1561723200000&bookingDays[1].endDate=1561730400000
Sin embargo, para poder realizar la petición correctamente hay que encodear la URL ya que los corchetes "[]" son carácteres no válidos.
Request Example
GET http://localhost:9010/api/v1/users/me/buildings/5068c634-064d-4e15-b17f-1a420c68f051/workstations/subcategories/eaacb523-7a8b-44d4-a3b2-d67f036a3b1c/free/findslot?features=faf57caf-53ed-410f-bf3d-39f220593ba7,asd57caf-53ed-230f-bf3d-39f220593c4r&bookingDays%5B0%5D.startDate=1561708800000&bookingDays%5B0%5D.endDate=1561712400000&bookingDays%5B1%5D.startDate=1561723200000&bookingDays%5B1%5D.endDate=1561730400000&duration=3600000&isFindSlot=false
Response
Si se han conseguido procesar la petición, se devuelve un código 200 con la información de un máximo de 10 opciones disponibles.
HTTP/1.1 200 OK
Content-type: application/json
{
"searchedUserInfoList": [
{
"resource": {
"id": "508a17a3-7a32-4571-8dd9-8bc788865fc7",
"name": "D16P6",
"posterCode": "D16P6",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"mapCoordinates": {
"topLeftX": 1157,
"topLeftY": 998,
"bottomRightX": 1206,
"bottomRightY": 1045
},
"approachable": false,
"floor": {
"id": "1b4b20aa-794a-45eb-a204-9e3367a66ca4"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"bookingStartDate": 1569841200000,
"bookingEndDate": 1569848400000,
"hasReservables": true
},
{
"resource": {
"id": "f2613d25-bcd8-49f2-9798-362e8749f3da",
"name": "D04P6",
"posterCode": "D04P6",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"mapCoordinates": {
"topLeftX": 1406,
"topLeftY": 720,
"bottomRightX": 1454,
"bottomRightY": 767
},
"approachable": false,
"floor": {
"id": "1b4b20aa-794a-45eb-a204-9e3367a66ca4"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"bookingStartDate": 1569834900000,
"bookingEndDate": 1569842100000,
"hasReservables": true
},
{
"resource": {
"id": "3dd43ee1-83c2-427d-97dc-9e5cb1ae90af",
"name": "D13P5",
"posterCode": "D13P5",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"mapCoordinates": {
"topLeftX": 1323,
"topLeftY": 919,
"bottomRightX": 1372,
"bottomRightY": 968
},
"approachable": false,
"floor": {
"id": "57bb022b-5b2f-4235-8b86-a69975bf394e"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"bookingStartDate": 1569837600000,
"bookingEndDate": 1569844800000,
"hasReservables": true
},
{
"resource": {
"id": "07148d40-c83a-43ca-94a0-c686f961eea8",
"name": "D08P5",
"posterCode": "D08P5",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"externalSyncEmail": "room01@bookkercorp.onmicrosoft.com",
"mapCoordinates": {
"topLeftX": 1158,
"topLeftY": 797,
"bottomRightX": 1207,
"bottomRightY": 847
},
"approachable": false,
"floor": {
"id": "57bb022b-5b2f-4235-8b86-a69975bf394e"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"bookingStartDate": 1569840300000,
"bookingEndDate": 1569847500000,
"hasReservables": true
},
{
"resource": {
"id": "afcd30b3-1938-4c7e-b68d-5e357572b54a",
"name": "D17SS",
"posterCode": "D17SS",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"mapCoordinates": {
"topLeftX": 1101,
"topLeftY": 1737,
"bottomRightX": 1150,
"bottomRightY": 1786
},
"approachable": false,
"floor": {
"id": "04669277-346f-48be-b4c0-06242c0f6683"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"bookingStartDate": 1569834900000,
"bookingEndDate": 1569842100000,
"hasReservables": true
},
{
"resource": {
"id": "d5c43b72-af0e-4579-8c70-a72c1044bc9c",
"name": "D03SS",
"posterCode": "D03SS",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"mapCoordinates": {
"topLeftX": 1353,
"topLeftY": 1565,
"bottomRightX": 1402,
"bottomRightY": 1615
},
"approachable": false,
"floor": {
"id": "04669277-346f-48be-b4c0-06242c0f6683"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"bookingStartDate": 1569840300000,
"bookingEndDate": 1569847500000,
"hasReservables": true
},
{
"resource": {
"id": "7792234e-4c64-48e8-8012-5ee19c33c551",
"name": "D37P6",
"posterCode": "D37P6",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"mapCoordinates": {
"topLeftX": 1324,
"topLeftY": 1600,
"bottomRightX": 1371,
"bottomRightY": 1649
},
"approachable": false,
"floor": {
"id": "1b4b20aa-794a-45eb-a204-9e3367a66ca4"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"bookingStartDate": 1569834900000,
"bookingEndDate": 1569842100000,
"hasReservables": true
},
{
"resource": {
"id": "92bb38d5-73bc-4ad1-8f51-f0bf98eaf0b3",
"name": "D17P3",
"posterCode": "D17P3",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"mapCoordinates": {
"topLeftX": 1406,
"topLeftY": 720,
"bottomRightX": 1454,
"bottomRightY": 767
},
"approachable": false,
"floor": {
"id": "91339bdb-caa0-41ec-9b7e-4dc8164313e3"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"bookingStartDate": 1569838500000,
"bookingEndDate": 1569845700000,
"hasReservables": true
},
{
"resource": {
"id": "fb29270a-0f1d-4bc6-83c1-98f0e446762a",
"name": "D32P3",
"posterCode": "D32P3",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"mapCoordinates": {
"topLeftX": 1406,
"topLeftY": 998,
"bottomRightX": 1454,
"bottomRightY": 1046
},
"approachable": false,
"floor": {
"id": "91339bdb-caa0-41ec-9b7e-4dc8164313e3"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"bookingStartDate": 1569836700000,
"bookingEndDate": 1569843900000,
"hasReservables": true
},
{
"resource": {
"id": "58a55678-2bcf-4694-b445-b5814fade456",
"name": "D02SS",
"posterCode": "D02SS",
"image": "https://api.develop.bookkercorp.com/api/v1/bookker/download/organizations/8aee218a-fce2-4900-9410-00f485a2729e/users/5432a51ff76e4e349a0fcd6759eeaa0a.jpeg",
"mapCoordinates": {
"topLeftX": 1211,
"topLeftY": 978,
"bottomRightX": 1260,
"bottomRightY": 1027
},
"approachable": false,
"floor": {
"id": "04669277-346f-48be-b4c0-06242c0f6683"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"bookingStartDate": 1569834900000,
"bookingEndDate": 1569842100000
}
]
}
BookingDay
Properties
| Name | Type | Description |
|---|---|---|
| startDate | Long | Fecha y hora en milisegundos del inicio de la reserva. |
| endDate | Long | Fecha y hora en milisegundos del fin de la reserva. |
{
"startDate": 1561557600000,
"endDate": 1561559400000
}
Crear pre-reserva
El usuario podrá pre-reservar hasta X reuniones, donde X es configurable por la compañÃa (por defecto es 3).
HTTP request
Spaces
POST /api/v1/users/me/bookings/spaces/findslot
POST /api/v1/users/{userId}/bookings/spaces/findslot
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFM1MT… | true |
Request Example
POST http://localhost:9010/api/v1/users/me/bookings/spaces/findslot
{
"subject": "Prueba creeación reserva find slot",
"body": {
"content": "La descripción de la reserva bla bla bla bla bla...",
"bodyType": "TEXT"
},
"importance": "LOW",
"internalAttendees": [
{
"type": "REQUIRED",
"user": {
"id": "8bd79424-6782-473e-bcc1-8e94d550f2de"
}
},
{
"type": "OPTIONAL",
"user": {
"id": "a6cd8023-c735-4ad8-bdac-049a0c511714"
}
}
],
"externalAttendees": [
{
"type": "OPTIONAL",
"email": "usuarioexterno1@gmail.com"
}
],
"findSlotOptions": [
{
"resourceId": "381d92e1-87b0-40d2-95da-b93413701aa4",
"bookingDay": {
"startDate": 1569502800000,
"endDate": 1569513600000
}
},
{
"resourceId": "b6badb50-6497-4e51-9ec3-fc0c5a0748d5",
"bookingDay": {
"startDate": 1569510000000,
"endDate": 1569510900000
}
},
{
"resourceId": "ffa5c9c3-de4a-4bd4-bb9b-bc657749d2ca",
"bookingDay": {
"startDate": 1569575700000,
"endDate": 1569577500000
}
}
]
}
Response
Si se han conseguido procesar la petición, se devuelve un código 201 con la información de las pre-reservas.
HTTP/1.1 200 OK
Content-type: application/json
{
"bookings": [
{
"id": "c05b1d8a-c261-4a6e-b2af-a50185fc3b38",
"startDate": 1569841200000,
"endDate": 1569848400000,
"duration": 7200000,
"status": "PENDING_VOTING",
"accessControlType": "ORGANIZER",
"creator": {
"id": "8133c93f-97d7-4fef-ab87-97b1a3df9d47",
"name": "Aitor",
"surname": "Gómez",
"alias": "5de897ff3396477e8f2d1ec9dca433eb",
"email": "aitor.gomez@bookkercorp.com",
"organization": {
"id": "12acc37e-723f-43ef-8914-1de2affba3bd"
},
"userRule": {
"id": "8fe659f9-df21-44e3-8c85-4cff2703f915"
},
"mobileRole": {
"id": "5220b6a2-8920-4dae-8ff0-ba96707d439d"
},
"canBeSearched": true
},
"organizer": {
"id": "8133c93f-97d7-4fef-ab87-97b1a3df9d47",
"name": "Aitor",
"surname": "Gómez",
"alias": "5de897ff3396477e8f2d1ec9dca433eb",
"email": "aitor.gomez@bookkercorp.com",
"organization": {
"id": "12acc37e-723f-43ef-8914-1de2affba3bd"
},
"userRule": {
"id": "8fe659f9-df21-44e3-8c85-4cff2703f915"
},
"mobileRole": {
"id": "5220b6a2-8920-4dae-8ff0-ba96707d439d"
},
"canBeSearched": true
},
"resource": {
"id": "381d92e1-87b0-40d2-95da-b93413701aa4",
"name": "D09SS",
"posterCode": "D09SS",
"mapCoordinates": {
"topLeftX": 1353,
"topLeftY": 1720,
"bottomRightX": 1402,
"bottomRightY": 1769
},
"approachable": false,
"floor": {
"id": "04669277-346f-48be-b4c0-06242c0f6683"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"supervisedBooking": {},
"subject": "Prueba creeación reserva find slot",
"body": {
"content": "La descripción de la reserva bla bla bla bla bla...",
"bodyType": "TEXT"
},
"importance": "LOW",
"selfInvite": false,
"attendeesCanInvite": false,
"attendeesCanModify": false,
"attendeesCanSeeOtherAttendees": false,
"findSlotId": "c8ddec4d-f352-4bc8-9227-fe8e004f6f0a",
"resourceType": "SPACE",
"internalAttendees": [
{
"id": "1d02800e-c925-42de-81e7-060ba4dbd8d6",
"type": "ORGANIZER",
"status": "ACCEPTED",
"bookingId": "c05b1d8a-c261-4a6e-b2af-a50185fc3b38",
"user": {
"id": "8133c93f-97d7-4fef-ab87-97b1a3df9d47"
}
},
{
"id": "7aa46918-ba11-4784-9210-44f9a4a209c2",
"type": "OPTIONAL",
"status": "NEEDS_ACTION",
"bookingId": "c05b1d8a-c261-4a6e-b2af-a50185fc3b38",
"user": {
"id": "a6cd8023-c735-4ad8-bdac-049a0c511714"
}
},
{
"id": "79384d14-1193-4b64-bd69-076a6ed9fdd4",
"type": "REQUIRED",
"status": "NEEDS_ACTION",
"bookingId": "c05b1d8a-c261-4a6e-b2af-a50185fc3b38",
"user": {
"id": "8bd79424-6782-473e-bcc1-8e94d550f2de"
}
}
],
"externalAttendees": [
{
"id": "d2d280e7-bf4a-4e14-97e8-5422dd6f191b",
"type": "OPTIONAL",
"status": "NEEDS_ACTION",
"bookingId": "c05b1d8a-c261-4a6e-b2af-a50185fc3b38",
"email": "usuarioexterno1@gmail.com"
}
]
},
{
"id": "85d7016f-41d8-495b-87af-137698e6148e",
"startDate": 1569857400000,
"endDate": 1569861000000,
"duration": 3600000,
"status": "PENDING_VOTING",
"accessControlType": "ORGANIZER",
"creator": {
"id": "8133c93f-97d7-4fef-ab87-97b1a3df9d47",
"name": "Aitor",
"surname": "Gómez",
"alias": "5de897ff3396477e8f2d1ec9dca433eb",
"email": "aitor.gomez@bookkercorp.com",
"organization": {
"id": "12acc37e-723f-43ef-8914-1de2affba3bd"
},
"userRule": {
"id": "8fe659f9-df21-44e3-8c85-4cff2703f915"
},
"mobileRole": {
"id": "5220b6a2-8920-4dae-8ff0-ba96707d439d"
},
"canBeSearched": true
},
"organizer": {
"id": "8133c93f-97d7-4fef-ab87-97b1a3df9d47",
"name": "Aitor",
"surname": "Gómez",
"alias": "5de897ff3396477e8f2d1ec9dca433eb",
"email": "aitor.gomez@bookkercorp.com",
"organization": {
"id": "12acc37e-723f-43ef-8914-1de2affba3bd"
},
"userRule": {
"id": "8fe659f9-df21-44e3-8c85-4cff2703f915"
},
"mobileRole": {
"id": "5220b6a2-8920-4dae-8ff0-ba96707d439d"
},
"canBeSearched": true
},
"resource": {
"id": "ffa5c9c3-de4a-4bd4-bb9b-bc657749d2ca",
"name": "D01SS",
"posterCode": "D01SS",
"mapCoordinates": {
"topLeftX": 1211,
"topLeftY": 897,
"bottomRightX": 1260,
"bottomRightY": 946
},
"approachable": false,
"floor": {
"id": "04669277-346f-48be-b4c0-06242c0f6683"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"supervisedBooking": {},
"subject": "Prueba creeación reserva find slot",
"body": {
"content": "La descripción de la reserva bla bla bla bla bla...",
"bodyType": "TEXT"
},
"importance": "LOW",
"selfInvite": false,
"attendeesCanInvite": false,
"attendeesCanModify": false,
"attendeesCanSeeOtherAttendees": false,
"findSlotId": "c8ddec4d-f352-4bc8-9227-fe8e004f6f0a",
"resourceType": "SPACE",
"internalAttendees": [
{
"id": "a6f5d313-4e3d-4dc7-aacd-a25e7f41c728",
"type": "ORGANIZER",
"status": "ACCEPTED",
"bookingId": "85d7016f-41d8-495b-87af-137698e6148e",
"user": {
"id": "8133c93f-97d7-4fef-ab87-97b1a3df9d47"
}
},
{
"id": "564c6601-42ca-4e21-ab24-c9fe983e00fa",
"type": "OPTIONAL",
"status": "NEEDS_ACTION",
"bookingId": "85d7016f-41d8-495b-87af-137698e6148e",
"user": {
"id": "a6cd8023-c735-4ad8-bdac-049a0c511714"
}
},
{
"id": "d6b25168-96f2-4caf-8dd0-ee2c1b2c9bdc",
"type": "REQUIRED",
"status": "NEEDS_ACTION",
"bookingId": "85d7016f-41d8-495b-87af-137698e6148e",
"user": {
"id": "8bd79424-6782-473e-bcc1-8e94d550f2de"
}
}
],
"externalAttendees": [
{
"id": "de902729-4507-4685-b6e8-89e752be10e3",
"type": "OPTIONAL",
"status": "NEEDS_ACTION",
"bookingId": "85d7016f-41d8-495b-87af-137698e6148e",
"email": "usuarioexterno1@gmail.com"
}
]
},
{
"id": "7a982275-14a0-4bd4-b891-7ce5ba33cee4",
"startDate": 1569850200000,
"endDate": 1569853800000,
"duration": 3600000,
"status": "PENDING_VOTING",
"accessControlType": "ORGANIZER",
"creator": {
"id": "8133c93f-97d7-4fef-ab87-97b1a3df9d47",
"name": "Aitor",
"surname": "Gómez",
"alias": "5de897ff3396477e8f2d1ec9dca433eb",
"email": "aitor.gomez@bookkercorp.com",
"organization": {
"id": "12acc37e-723f-43ef-8914-1de2affba3bd"
},
"userRule": {
"id": "8fe659f9-df21-44e3-8c85-4cff2703f915"
},
"mobileRole": {
"id": "5220b6a2-8920-4dae-8ff0-ba96707d439d"
},
"canBeSearched": true
},
"organizer": {
"id": "8133c93f-97d7-4fef-ab87-97b1a3df9d47",
"name": "Aitor",
"surname": "Gómez",
"alias": "5de897ff3396477e8f2d1ec9dca433eb",
"email": "aitor.gomez@bookkercorp.com",
"organization": {
"id": "12acc37e-723f-43ef-8914-1de2affba3bd"
},
"userRule": {
"id": "8fe659f9-df21-44e3-8c85-4cff2703f915"
},
"mobileRole": {
"id": "5220b6a2-8920-4dae-8ff0-ba96707d439d"
},
"canBeSearched": true
},
"resource": {
"id": "b6badb50-6497-4e51-9ec3-fc0c5a0748d5",
"name": "D14SS",
"posterCode": "D14SS",
"phone": "898798",
"mapCoordinates": {
"topLeftX": 969,
"topLeftY": 1649,
"bottomRightX": 1018,
"bottomRightY": 1698
},
"approachable": false,
"floor": {
"id": "04669277-346f-48be-b4c0-06242c0f6683"
},
"subcategory": {
"id": "e1d9af28-29ee-444c-9edd-6f0e871b18ce"
},
"visible": true,
"capacity": 1
},
"supervisedBooking": {},
"subject": "Prueba creeación reserva find slot",
"body": {
"content": "La descripción de la reserva bla bla bla bla bla...",
"bodyType": "TEXT"
},
"importance": "LOW",
"selfInvite": false,
"attendeesCanInvite": false,
"attendeesCanModify": false,
"attendeesCanSeeOtherAttendees": false,
"findSlotId": "c8ddec4d-f352-4bc8-9227-fe8e004f6f0a",
"resourceType": "SPACE",
"internalAttendees": [
{
"id": "0f85a7e4-b5b8-4df3-aa0d-d0077641ddd3",
"type": "ORGANIZER",
"status": "ACCEPTED",
"bookingId": "7a982275-14a0-4bd4-b891-7ce5ba33cee4",
"user": {
"id": "8133c93f-97d7-4fef-ab87-97b1a3df9d47"
}
},
{
"id": "c54d90d2-4f5c-454e-9f02-f538bdbc9a25",
"type": "OPTIONAL",
"status": "NEEDS_ACTION",
"bookingId": "7a982275-14a0-4bd4-b891-7ce5ba33cee4",
"user": {
"id": "a6cd8023-c735-4ad8-bdac-049a0c511714"
}
},
{
"id": "0b7cc227-2e03-4cd2-a19a-c5e8b9de0351",
"type": "REQUIRED",
"status": "NEEDS_ACTION",
"bookingId": "7a982275-14a0-4bd4-b891-7ce5ba33cee4",
"user": {
"id": "8bd79424-6782-473e-bcc1-8e94d550f2de"
}
}
],
"externalAttendees": [
{
"id": "a61ad46c-23b9-47b2-8c8e-f628424cb86b",
"type": "OPTIONAL",
"status": "NEEDS_ACTION",
"bookingId": "7a982275-14a0-4bd4-b891-7ce5ba33cee4",
"email": "usuarioexterno1@gmail.com"
}
]
}
]
}
Votar opciones
Los invitados a la reserva podrán votar que opción u opciones les parecen mejores para que se realice la reserva.
HTTP request
Spaces
POST /api/v1/users/me/bookings/spaces/findslot/{findSlotId}/vote
POST /api/v1/users/{userId}/bookings/spaces/findslot/{findSlotId}/vote
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFM1MT… | true |
Request Example
POST http://localhost:9010/api/v1/users/me/bookings/spaces/findslot/f1ae0cbd-62e4-4734-8855-a9f9407f56c8/vote
[
"1da67e10-35ab-4fd9-9c47-bbbf902497ba",
"8bd79424-6782-473e-bcc1-8e94d550f2de"
]
Response
Si se han conseguido procesar la petición, se devuelve un código 200.