Business Core | Calendar
Service to manage entities of type 'WorkCalendar'.
Overview
URL | api/{tenantKey}/{orgKey}/businessCore/workCalendars |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set Custom Attribute WorkCalendar
- PUT Set IsActive WorkCalendar
- PUT Set CalendarKey WorkCalendar
- PUT Set Description WorkCalendar
- PUT Set IsDefault WorkCalendar
- PUT Set Remarks WorkCalendar
- PUT Set Company WorkCalendar
- PUT Set CalendarEventKind CalendarInactivityPeriod
- PUT Set StartDate CalendarInactivityPeriod
- PUT Set EndDate CalendarInactivityPeriod
- PUT Set Remarks CalendarInactivityPeriod
- DELETE:
All Resources
This service uses the following resources:
GET WorkCalendars (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 WorkCalendarResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET WorkCalendar 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 WorkCalendarResource. |
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 WorkCalendar by key
Returns the entity record that matches the specified key.
The following elements are required:
companyKey | (string) The company key. |
calendarKey | (string) Calendar. |
Response:
When successful, the response body contains the entity record. See WorkCalendarResource. |
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 WorkCalendars
Creates a new entity record.
The following elements are required:
workCalendarResource | (ApiWorkCalendarResource) The request body should contain the entity record that should be created. See ApiWorkCalendarResource. |
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 ApiWorkCalendarResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Calendar Inactivity Period
Inserts a new 'Calendar Inactivity Period' in the 'Calendar'.
The following elements are required:
calendarKey | (string) Calendar. |
companyKey | (string) The company key. |
value | (ApiWorkCalendarCalendarInactivityPeriodsResource) The ApiWorkCalendarCalendarInactivityPeriodsResource instance. See ApiWorkCalendarCalendarInactivityPeriodsResource. |
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 CalendarEventKind CalendarInactivityPeriod
Updates the value of attribute 'CalendarEventKind' in the specified entity record.
The following elements are required:
calendarKey | (string) Calendar. |
lineId | (string) The detail identifier. |
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 CalendarKey WorkCalendar
Updates the value of attribute 'CalendarKey' in the specified entity record.
The following elements are required:
calendarKey | (string) Calendar. |
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 Company WorkCalendar
Updates the value of attribute 'Company' in the specified entity record.
The following elements are required:
calendarKey | (string) Calendar. |
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 Description WorkCalendar
Updates the value of attribute 'Description' in the specified entity record.
The following elements are required:
calendarKey | (string) Calendar. |
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 EndDate CalendarInactivityPeriod
Updates the value of attribute 'EndDate' in the specified entity record.
The following elements are required:
calendarKey | (string) Calendar. |
lineId | (string) The detail identifier. |
companyKey | (string) The company key. |
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 IsActive WorkCalendar
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
calendarKey | (string) Calendar. |
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 WorkCalendar
Updates the value of attribute 'IsDefault' in the specified entity record.
The following elements are required:
calendarKey | (string) Calendar. |
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 CalendarInactivityPeriod
Updates the value of attribute 'Remarks' in the specified entity record.
The following elements are required:
calendarKey | (string) Calendar. |
lineId | (string) The detail identifier. |
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 Remarks WorkCalendar
Updates the value of attribute 'Remarks' in the specified entity record.
The following elements are required:
calendarKey | (string) Calendar. |
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 StartDate CalendarInactivityPeriod
Updates the value of attribute 'StartDate' in the specified entity record.
The following elements are required:
calendarKey | (string) Calendar. |
lineId | (string) The detail identifier. |
companyKey | (string) The company key. |
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 Custom Attribute WorkCalendar
Updates the value of 'CustomAttribute' in the specified entity record.
The following elements are required:
companyKey | (string) The company key. |
calendarKey | (string) Calendar |
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 Calendar Inactivity Period by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
calendarKey | (string) Calendar. |
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 WorkCalendar 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 WorkCalendar by key
Deletes the entity record that matches the specified key.
The following elements are required:
companyKey | (string) The company key. |
calendarKey | (string) Calendar. |
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
ApiWorkCalendarCalendarInactivityPeriodsResource
The following elements are required:
calendarEventKind | (string) Calendar Event Kind. |
startDate | (DateTime) Start Date. |
endDate | (DateTime) End Date. |
The following elements are optional:
remarks | (string) Remarks. |
ApiWorkCalendarResource
The following elements are required:
calendarKey | (string) Calendar. |
description | (string) Description. |
company | (string) Company. |
The following elements are optional:
isDefault | (bool) Is Default. |
remarks | (string) Remarks. |
calendarInactivityPeriods | (List of ApiWorkCalendarCalendarInactivityPeriodsResource) Calendar Inactivity Periods.
See ApiWorkCalendarCalendarInactivityPeriodsResource. |
WorkCalendarResource
The following elements are required:
calendarKey | (string) Calendar. |
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. |
calendarInactivityPeriods | (List of CalendarInactivityPeriodResource) Calendar Inactivity Periods.
See CalendarInactivityPeriodResource. |
ExtensibilityCustomAttributeValueResource
The following elements are required:
value | (object) The custom attribute value. |