UpdateCalendar
Updates a scheduling calendar. This operation performs a full update and requires the complete editable configuration.
Operation description
You must purchase DataWorks Enterprise Edition to use this feature.
The calendar name cannot be modified. Unsubmitted dates are not retained.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The ID of the scheduling calendar to be updated. You can obtain the ID from the PagingInfo.Calendars[].Id field returned by the ListCalendars operation. |
12345 |
| AllProjects |
boolean |
No |
Specifies whether the calendar applies to all workspaces. Default value: false. Valid values:
|
true |
| ProjectIds |
array |
No |
The list of applicable workspace IDs.
|
|
|
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, in the yyyy-MM-dd format. Required when Type is set to StrongConstraint. |
2026-10-08 |
| EndDate |
string |
No |
The end date of the calendar validity period, in the yyyy-MM-dd format. Required when Type is set to StrongConstraint. The end date cannot be earlier than the start date, and the interval between the start date and the end date must be less than 5 years. |
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, in the yyyy-MM-dd 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, in the yyyy-MM-dd 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. |
Weekday scheduling calendar |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
| Version |
integer |
The updated version number. The version number increments by 1 after each successful update. You can call the ListCalendarVersions operation to query the version history. |
2 |
Examples
Success response
JSON format
{
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX",
"Version": 2
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.