People | Schedule
Service to manage entities of type 'Schedule'.
Overview
URL | api/{tenantKey}/{orgKey}/peopleCore/schedules |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set IsActive Schedule
- PUT Set ScheduleKey Schedule
- PUT Set Name Schedule
- PUT Set Monday Schedule
- PUT Set Tuesday Schedule
- PUT Set Wednesday Schedule
- PUT Set Thursday Schedule
- PUT Set Friday Schedule
- PUT Set Saturday Schedule
- PUT Set Sunday Schedule
- PUT Set ScheduleType Schedule
- PUT Set HoursPerWeek Schedule
- PUT Set ScheduleDaysJson Schedule
- PUT Set ExpiryDate Schedule
- PUT Set Date ScheduleDay
- PUT Set Hours ScheduleDay
- DELETE:
All Resources
This service uses the following resources:
All Enumerations
This service uses the following enumerations:
GET Schedules
Returns the list of all the entity records available.
Response:
When successful, the response body contains the list of records available. See ScheduleResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Schedules (paged)
Returns a page of the list of all the entity records available.
The following elements are optional:
page | (int) The index of the page of the list that should be returned. This is a query string parameter. |
pageSize | (int) The number of page elements that should be returned (max. is 1000). This is a query string parameter. |
Response:
When successful, the response body contains the list of records available. See ScheduleResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Schedule by identifier
Returns the entity record that matches the specified identifier.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body contains the entity record. See ScheduleResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET Schedule by key
Returns the entity record that matches the specified key.
The following elements are required:
scheduleKey | (string) Schedule. |
Response:
When successful, the response body contains the entity record. See ScheduleResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET Print Schedule by identifier
Prints the specified entity record.
The following elements are required:
id | (string) The record identifier. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Print Schedule by key
Prints the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
GET Original Print ScheduleOriginal by identifier
Prints the specified entity record.
The following elements are required:
id | (string) The record identifier. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
404 | NotFound. The specified resord does not exist. |
Resource URL:
GET Original Print Schedule by key
Prints the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
The following elements are optional:
template | (string) The report template that should be used. This is a query string parameter. |
Response:
When successful, the response body contains a stream with the printed file. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
POST Schedules
Creates a new entity record.
The following elements are required:
scheduleResource | (ApiScheduleResource) The request body should contain the entity record that should be created. See ApiScheduleResource. |
Response:
When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiScheduleResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Schedule
Inserts a new 'Schedule Day' in the 'Schedule'.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (ApiScheduleScheduleDaysResource) The ApiScheduleScheduleDaysResource instance. See ApiScheduleScheduleDaysResource. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | NoContent. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Date ScheduleDay
Updates the value of attribute 'Date' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
lineId | (string) The detail identifier. |
value | (DateTime) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set ExpiryDate Schedule
Updates the value of attribute 'ExpiryDate' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (DateTime) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Friday Schedule
Updates the value of attribute 'Friday' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Hours ScheduleDay
Updates the value of attribute 'Hours' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
lineId | (string) The detail identifier. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set HoursPerWeek Schedule
Updates the value of attribute 'HoursPerWeek' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set IsActive Schedule
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (bool) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
PUT Set Monday Schedule
Updates the value of attribute 'Monday' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Name Schedule
Updates the value of attribute 'Name' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Saturday Schedule
Updates the value of attribute 'Saturday' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set ScheduleDaysJson Schedule
Updates the value of attribute 'ScheduleDaysJson' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set ScheduleKey Schedule
Updates the value of attribute 'ScheduleKey' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (string) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set ScheduleType Schedule
Updates the value of attribute 'ScheduleType' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (enum ScheduleType) The request body should contain the new value for the attribute. See ScheduleType. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Sunday Schedule
Updates the value of attribute 'Sunday' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Thursday Schedule
Updates the value of attribute 'Thursday' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Tuesday Schedule
Updates the value of attribute 'Tuesday' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
PUT Set Wednesday Schedule
Updates the value of attribute 'Wednesday' in the specified entity record.
The following elements are required:
scheduleKey | (string) Schedule. |
value | (decimal) The request body should contain the new value for the attribute. |
Response:
When successful, the response body is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
DELETE Schedule Day by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
scheduleKey | (string) Schedule. |
lineId | (string) The line identifier. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | NoContent. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE Schedule by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
id | (string) The record identifier. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | Deleted. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE Schedule by key
Deletes the entity record that matches the specified key.
The following elements are required:
scheduleKey | (string) Schedule. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | Deleted. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
Resources
ApiScheduleResource
The following elements are required:
scheduleKey | (string) Schedule. |
name | (string) Name. |
monday | (decimal) Monday. |
tuesday | (decimal) Tuesday. |
wednesday | (decimal) Wednesday. |
thursday | (decimal) Thursday. |
friday | (decimal) Friday. |
saturday | (decimal) Saturday. |
sunday | (decimal) Sunday. |
scheduleType | (enum ScheduleType) Schedule Type.
See ScheduleType. |
The following elements are optional:
hoursPerWeek | (decimal) Hours Per Week. |
scheduleDays | (List of ApiScheduleScheduleDaysResource) Schedule Days.
See ApiScheduleScheduleDaysResource. |
scheduleDaysJson | (string) Schedule Days Json. |
expiryDate | (DateTime) Expiry Date. |
ApiScheduleScheduleDaysResource
The following elements are optional:
date | (DateTime) Date. |
hours | (decimal) Hours. |
ScheduleDayResource
The following elements are optional:
date | (DateTime) Date. |
hours | (decimal) Hours. |
ScheduleResource
The following elements are required:
scheduleKey | (string) Schedule. |
name | (string) Name. |
monday | (decimal) Monday. |
tuesday | (decimal) Tuesday. |
wednesday | (decimal) Wednesday. |
thursday | (decimal) Thursday. |
friday | (decimal) Friday. |
saturday | (decimal) Saturday. |
sunday | (decimal) Sunday. |
scheduleType | (enum ScheduleType) Schedule Type.
See ScheduleType. |
The following elements are optional:
hoursPerWeek | (decimal) Hours Per Week. |
scheduleDays | (List of ScheduleDayResource) Schedule Days.
See ScheduleDayResource. |
scheduleDaysJson | (string) Schedule Days Json. |
expiryDate | (DateTime) Expiry Date. |