{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"https://api-rc.quinyx.com/v2/schedule-availability","description":""}],"paths":{"/v2":{"post":{"tags":["External rest endpoint for managing schedule availability"],"summary":"Create schedule availability","operationId":"createScheduleAvailability","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreateScheduleAvailabilityInternalIdsModel"}}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/v2/groups/{groupId}":{"get":{"tags":["External rest endpoint for managing schedule availability"],"summary":"Get schedule availability by group id","operationId":"getScheduleAvailabilityByGroup","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationInternalIdsScheduleAvailability"}}}}}}}},"/v2/employees/{employeeId}":{"get":{"tags":["External rest endpoint for managing schedule availability"],"summary":"Get schedule availability by employee id","operationId":"getScheduleAvailabilityByEmployee","parameters":[{"name":"employeeId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"start","in":"query","required":true,"schema":{"type":"string","format":"date-time"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationInternalIdsScheduleAvailability"}}}}}}}}},"components":{"schemas":{"CreateScheduleAvailabilityInternalIdsModel":{"type":"object","properties":{"startDateTime":{"type":"string","format":"date-time"},"endDateTime":{"type":"string","format":"date-time"},"employeeId":{"type":"integer","format":"int64"},"groupId":{"type":"integer","format":"int32"}}},"IntegrationInternalIdsScheduleAvailability":{"type":"object","properties":{"startDateTime":{"type":"string","format":"date-time"},"endDateTime":{"type":"string","format":"date-time"},"employeeId":{"type":"integer","format":"int64"},"unitGroupIds":{"type":"array","items":{"type":"integer","format":"int32"}},"sectionGroupIds":{"type":"array","items":{"type":"integer","format":"int32"}}}}}}}