ProRoster - Update an availability
API Url
Use it for updating the availability for an employee.
PUT
http://localhost:16010/ProMarkREST/rest/ProRoster/availabilities/{id}
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
objectIdoptional | String | The id of the availability. |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| empId | String | Employee's id . |
| availabilities | Object[] | Collection of availabilities. |
| comment | String | Comment for the availability. |
| endDate | Date | The end date of the availability. |
| excludeWeekends | Logical | If TRUE the repeat pattern is not to be repeated on weekends. |
| id | String | The unique id of the availability. |
| inclDays | Logical[7] | Days to repeat. |
| intvFrom | Number | Start time of the availability. |
| intvTo | Number | End time of the availability. |
| isAllDay | Logical | Yes/No. |
| isRepeating | Logical | TRUE/FALSE. |
| repeatEvery | Number | Periods before repeat . |
| repeatType | Number | 1 = Daily, 2 = Weekly. |
| startDate | Date | The start date of the availability. |
| type | Number | The type of the availability. |
Request example:
{"request":{"data":{"availabilities":{"id": "2163169092","empId": "892","startDate": "2019-06-27","endDate": "2019-06-27","intvFrom": 1500,"intvto": 6000,"isAllDay": "No","Type": 1,"isRepeating": "No","repeatType": "" ,"repeatEvery": "" ,"excludeWeekends": "No","inclDays":[],"comment": "Doctor appointment in the morning"}}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |