Skip to main content

Create a setting using the provided object

POST 

/calendar-backend/api/v1/settings

Create a setting using the provided object.

Example:


curl -u username:password -X POST -H 'Content-type:application/json'
-d '{
"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

Request​

Responses​

  • HTTP 200 and the created entity
  • HTTP 404 if not found