Skip to main content

Update setting

PUT 

/calendar-backend/api/v1/settings/:id

Update setting.

Update the identified setting with the state of the supplied object.

Example:

curl -u username:password -X PUT -H 'Content-type:application/json'
-d '{
"id": 1,
"group": "calendar",
"label": "settings",
"data": "{\"orchestraServer\":{\"url\":\"http://localhost:8080/qsystem/rest/appointment\",\"username\":\"calendar\",\"password\":\"\",\"orchestraVersion\":\"POST_53\",\"disableServiceSynchronization\":\"false\"},
\"customerMapping\":{\"calendarToOrchestra\":\"cardNumber\",\"publicToCalendar\":\"externalId\"},
\"bookingSettings\":{\"reservationExpiryTimeSeconds\":\"600\",\"prefetchCachedData\":\"false\",\"customSlotLength\":\"true\",\"customSlotLengthMin\":\"1\",\"customSlotLengthMax\":\"10080\",\"slotsCalculatedAfterBlocks\":\"false\"},
\"haSettings\":{\"periodicPrefetchCachedData\":\"false\",\"prefetchCachedDataPeriodicDelayMinutes\":\"60\"},
\"deploymentSettings\":{\"deploymentMode\":\"INTEGRATED\"},
\"externalCustomerDbSettings\":{\"calendarCustomerDbUrl\":\"http://localhost:8080/calendar-customer-db/api/v1\",\"calendarCustomerDbUsername\":\"\",\"calendarCustomerDbPassword\":\"\"},
\"cleanSettingsGroup\":{\"removeAfterDays\":\"90\"},
\"appointmentLockSettings\":{\"maxNoOfLocks\":\"1\",\"lockTimeOutMinutes\":\"10\"},
\"calendarClientSettings\":{\"startTime\":\"8\",\"endTime\":\"22\",\"firstHour\":\"8\"},
\"auditSettingsGroup\":{\"auditBlockingAppointment\":\"true\"},
\"browserSettings\":{\"browserCookieHttpOnly\":\"true\",\"browserCookieSecure\":\"false\"}}"
}'
http://localhost:8080/calendar-backend/api/v1/settings/1

Request​

Responses​

A Json object of com.qmatic.qp.calendar.model.Setting