CreateCalendar
Creates a scheduling calendar.
Operation description
DataWorks Enterprise Edition is required.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the scheduling calendar. The name must be unique within the current tenant and can be up to 100 characters in length. |
work_calendar |
| AllProjects |
boolean |
No |
Specifies whether the calendar applies to all workspaces. Default value: false. Valid values:
|
true |
| ProjectIds |
array |
No |
The IDs of the applicable workspaces.
|
|
|
integer |
No |
The workspace ID. |
1000 |
|
| Type |
string |
Yes |
The calendar type. Valid values:
Valid values:
|
StrongConstraint |
| StartDate |
string |
No |
The start date of the calendar validity period. Format: |
2026-10-08 |
| EndDate |
string |
No |
The end date of the calendar validity period. Format: |
2026-10-09 |
| ExpirationReminder |
string |
No |
The expiration reminder. Required when Type is set to StrongConstraint. Valid values:
Valid values:
|
OneMonthBefore |
| OverduePolicy |
string |
No |
The scheduling policy after the calendar expires. Required when Type is set to StrongConstraint. Valid values:
Valid values:
|
Skip |
| SchedulePolicy |
object |
Yes |
The date scheduling policy. For a strong constraint calendar, the normal scheduling dates and non-scheduling dates must cover every day within the validity period and cannot overlap. |
|
| NormalDates |
array |
No |
The list of normal scheduling dates. For a weak constraint calendar, you must specify at least one normal scheduling date. |
|
|
string |
No |
The normal scheduling date. Format: |
2026-10-08 |
|
| SkipDates |
array |
No |
The list of non-scheduling dates. Tasks perform dry runs on these dates. Used only for strong constraint calendars. |
|
|
string |
No |
The dry run date. Format: |
2026-10-09 |
|
| FallbackPolicy |
string |
No |
The default scheduling policy for unspecified dates. Required when Type is set to WeakConstraint. Valid values:
Valid values:
|
Normal |
| Owner |
string |
Yes |
The account ID of the owner. |
123456789 |
| Description |
string |
Yes |
The description of the scheduling calendar. The description must be 5 to 2,048 characters in length. |
Workday scheduling calendar |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Id |
integer |
The ID of the created scheduling calendar. You can pass this ID to GetCalendar to query the calendar configuration. |
12345 |
| RequestId |
string |
The request ID. |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
Examples
Success response
JSON format
{
"Id": 12345,
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.