Edición de las preferencias de usuario
Última modificación: 24/04/2025
Edición de las preferencias de usuario
Con esta llamada se podrán editar las preferencias de un usuario. En caso de que el usuario no tenga preferencias definidas se crearán por defecto y se actualizarán con las indicadas por parámetro.
El usuario no hace falta que se indique ya que se recupera mediante el usuario logueado.
Importante
Los parámetros workstationAllDayBooking, userCanBeSearched, showAdditionalServiceDialog y showAddAttendeesDialog son obligatorios, todos los demás serán opcionales.
Request
HTTP request
PUT /api/v1/user/app/preferences
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFM1MT… | true |
Body
En el cuerpo de la solicitud, proporcione una representación JSON del objeto RequestUserPreferences.
| Type | Description | Required |
|---|---|---|
| RequestUserPreferences | Perfil del usuario. | true |
Response
Se devuelve un código 200.
RequestUserPreferences
{
"workstationSubcategoryId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"workstationBuildingId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"workstationFloorId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"workstationAllDayBooking": false,
"workstationStartTime": 1615371300000,
"workstationEndTime": 1615371300000,
"spaceSubcategoryId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"spaceCountryId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"spaceCountyId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"spaceCityId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"spaceBuildingId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"spaceFloorId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"parkingSubcategoryId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"parkingBuildingId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"parkingFloorId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"parkingVehicleId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"parkingShiftsIds": [
"00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb"
],
"dinningAreaBuildingId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"dinningAreaFloorId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"dinningAreaShiftId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"userCanBeSearched": false,
"showAdditionalServiceDialog": false,
"showAddAttendeesDialog": false,
"showFixedResourcesCheckOutDialog": true,
"showParkingElectricChargerDialog": true,
"smartParkingVehicleId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"smartParkingSubcategoryId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"smartParkingBuildingId": "00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"smartParkingFeatures": [
"00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb"
],
"smartParkingShiftsId": [
"00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb",
"00e6e54a-e8b5-4d40-8fc3-7d4c56a26deb"
],
"smartParkingElectricCharger": true
}