Calendar Web Services
Overview
Universal Controller supports the following RESTful-based web services for Calendar operations, which are listed alphabetically on this page.
Formatting specifications for each web service, including details about parameter requirements, are provided.
Note
You can create and modify a Calendar that contains one or more global Custom Days only if the Custom Day Global Permitted Universal Controller system property is set to true.
Add an Existing Custom Day to a Calendar
Description | |
|---|---|
URI | |
HTTP Method | POST |
Description | Adds the specified Custom Day to the specified Calendar. |
URI Parameters | See Add an Existing Custom Day to a Calendar: URI Parameters, below. |
Example URI | |
Example Response |
|
Add an Existing Custom Day to a Calendar: URI Parameters
Name | Description | Specifications | Required | Mutually Exclusive With |
|---|---|---|---|---|
| Unique ID for the Calendar. | Y |
| |
| Name used within the Controller to identify the Calendar. | Maximum 40 alphanumerics. | Y |
|
| Unique ID for the Custom Day. | Y |
| |
| Name used within the Controller to identify the Custom Day. | Maximum 40 alphanumerics. | Y |
|
Create a Calendar
Description | |
|---|---|
URI | |
HTTP Method | POST |
Description | Creates a new Calendar. |
Example URI | |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | n/a |
Example Request | See Create a Calendar: Example Request, below. |
Calendar Properties | |
Custom Day Properties | |
Local Custom Day Properties | |
Example Response |
|
Create a Calendar: Example Request
XML Request | JSON Request |
|---|---|
|
|
Create a Calendar: Calendar Properties
Property | UI Field Name | Description | Specifications | Required |
|---|---|---|---|---|
| Business Days | Comma-separated list of days. | Valid values:
Optional: useDefaultIfBlank attribute. Boolean; Valid values: true/false.
The Read a Calendar web service will return useDefaultIfBlank only if | N |
| Description | User-defined; description for the calendar. | N | |
| n/a | Specification for whether or not to exclude related records (Custom Days, Local Custom Days) from an update, even if they are provided in the request. | Valid values: true/false (default is false). | N |
| n/a | Universal Controller release that the record was exported from. | read only | N |
| n/a | Record table information. | read only | N |
| First Day Of Week | Day that is considered the start of the week. | Valid values:
| N |
| Name | Name used within the Controller to identify this calendar. | Maximum 40 alphanumerics. | Y |
| Member of Business Services | List of Business Services:
| N | |
| n/a | Specification for whether or not the Create a Calendar web service will persist the sysId property.
Note In XML web services, | Valid values: true/false (default is true). | N |
| n/a | System ID field in the database for this Calendar record. | Persisted only if retainSysIds is set to true. | N |
firstQuarterStart | 1st Quarter Start | To specify the start of the 1st Quarter, a day and month must be specified as shown below.
JSON
| Valid values:
| If any other Quarter is specified then this property is also required. |
secondQuarterStart | 2nd Quarter Start | To specify the start of the 1st Quarter, a day and month must be specified as shown below.
JSON
| Valid values:
|