Business Core | Time Schedule
Service to manage entities of type 'WorkTimeSchedule'.
Overview
URL | api/{tenantKey}/{orgKey}/businessCore/workTimeSchedules |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set Custom Attribute WorkTimeSchedule
- PUT Set IsActive WorkTimeSchedule
- PUT Set TimeScheduleKey WorkTimeSchedule
- PUT Set Description WorkTimeSchedule
- PUT Set IsDefault WorkTimeSchedule
- PUT Set Remarks WorkTimeSchedule
- PUT Set Company WorkTimeSchedule
- PUT Set Day TimeScheduleDay
- PUT Set StartTime TimeScheduleDay
- PUT Set EndTime TimeScheduleDay
- DELETE:
All Resources
This service uses the following resources:
- ApiWorkTimeScheduleResource
- ApiWorkTimeScheduleTimeScheduleDaysResource
- WorkTimeScheduleResource
- ExtensibilityCustomAttributeValueResource
All Enumerations
This service uses the following enumerations:
GET WorkTimeSchedules (odata)
Returns a page of the list of all the entity records available.
The following elements are optional:
opts | (ODataQueryOptions) OData query option. |
Response:
When successful, the response body contains the list of records available. See WorkTimeScheduleResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET WorkTimeSchedule 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 WorkTimeScheduleResource. |
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 WorkTimeSchedule by key
Returns the entity record that matches the specified key.
The following elements are required:
companyKey | (string) The company key. |
timeScheduleKey | (string) Time Schedule. |
Response:
When successful, the response body contains the entity record. See WorkTimeScheduleResource. |
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 WorkTimeSchedules
Creates a new entity record.
The following elements are required:
workTimeScheduleResource | (ApiWorkTimeScheduleResource) The request body should contain the entity record that should be created. See ApiWorkTimeScheduleResource. |
The following elements are optional:
customAttributes | (JSON Document) A key-value pair in JSON format that represents the extensibility custom attributes for this entity. The key should be the custom attribute name prefixed with "custom_", e.g. "custom_attributeName". While the "customAttributes" element is optional, please notice that specific custom attributes might be marked as required. |
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 ApiWorkTimeScheduleResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Time Schedule Day
Inserts a new 'Time Schedule Day' in the 'Time Schedule'.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
companyKey | (string) The company key. |
value | (ApiWorkTimeScheduleTimeScheduleDaysResource) The ApiWorkTimeScheduleTimeScheduleDaysResource instance. See ApiWorkTimeScheduleTimeScheduleDaysResource. |
The following elements are optional:
customAttributes | (JSON Document) A key-value pair in JSON format that represents the extensibility custom attributes for this entity. The key should be the custom attribute name prefixed with "custom_", e.g. "custom_attributeName". While the "customAttributes" element is optional, please notice that specific custom attributes might be marked as required. |
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 Company WorkTimeSchedule
Updates the value of attribute 'Company' in the specified entity record.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
companyKey | (string) The company key. |
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 Day TimeScheduleDay
Updates the value of attribute 'Day' in the specified entity record.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
lineId | (string) The detail identifier. |
companyKey | (string) The company key. |
value | (enum Day) The request body should contain the new value for the attribute. See Day. |
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 Description WorkTimeSchedule
Updates the value of attribute 'Description' in the specified entity record.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
companyKey | (string) The company key. |
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 EndTime TimeScheduleDay
Updates the value of attribute 'EndTime' in the specified entity record.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
lineId | (string) The detail identifier. |
companyKey | (string) The company key. |
value | (TimeSpan) 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 WorkTimeSchedule
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
companyKey | (string) The company key. |
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 IsDefault WorkTimeSchedule
Updates the value of attribute 'IsDefault' in the specified entity record.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
companyKey | (string) The company key. |
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. |
Resource URL:
PUT Set Remarks WorkTimeSchedule
Updates the value of attribute 'Remarks' in the specified entity record.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
companyKey | (string) The company key. |
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 StartTime TimeScheduleDay
Updates the value of attribute 'StartTime' in the specified entity record.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
lineId | (string) The detail identifier. |
companyKey | (string) The company key. |
value | (TimeSpan) 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 TimeScheduleKey WorkTimeSchedule
Updates the value of attribute 'TimeScheduleKey' in the specified entity record.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
companyKey | (string) The company key. |
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 Custom Attribute WorkTimeSchedule
Updates the value of 'CustomAttribute' in the specified entity record.
The following elements are required:
companyKey | (string) The company key. |
timeScheduleKey | (string) Time Schedule |
customAttributeName | (string) The custom attribute name. |
value | (ExtensibilityCustomAttributeValueResource) The request body should contain the new value for the custom attribute. See ExtensibilityCustomAttributeValueResource. |
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:
DELETE Time Schedule Day by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
companyKey | (string) The company key. |
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 WorkTimeSchedule 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 WorkTimeSchedule by key
Deletes the entity record that matches the specified key.
The following elements are required:
companyKey | (string) The company key. |
timeScheduleKey | (string) Time 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
ApiWorkTimeScheduleResource
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
description | (string) Description. |
company | (string) Company. |
The following elements are optional:
isDefault | (bool) Is Default. |
remarks | (string) Remarks. |
timeScheduleDays | (List of ApiWorkTimeScheduleTimeScheduleDaysResource) Time Schedule Days.
See ApiWorkTimeScheduleTimeScheduleDaysResource. |
ApiWorkTimeScheduleTimeScheduleDaysResource
The following elements are required:
day | (enum Day) Day.
See Day. |
startTime | (TimeSpan) Start Time. |
endTime | (TimeSpan) End Time. |
WorkTimeScheduleResource
The following elements are required:
timeScheduleKey | (string) Time Schedule. |
description | (string) Description. |
company | (string) Company.
(fk) Allowed value: the natural key of a record of type Company. These records are accessibly through the Companies service. |
The following elements are optional:
isDefault | (bool) Is Default. |
remarks | (string) Remarks. |
timeScheduleDays | (List of TimeScheduleDayResource) Time Schedule Days.
See TimeScheduleDayResource. |
ExtensibilityCustomAttributeValueResource
The following elements are required:
value | (object) The custom attribute value. |