UpdateCalendar

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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: All workspaces.

  • false: The workspaces specified by ProjectIds.

true

ProjectIds

array

No

The list of applicable workspace IDs.

  • Required and cannot be empty when AllProjects is set to false or left unspecified.

  • Leave empty or pass an empty array when AllProjects is set to true.

integer

No

The workspace ID.

1000

Type

string

Yes

The calendar type.

Valid values:

  • StrongConstraint: Strong constraint calendar.

  • WeakConstraint: Weak constraint calendar.

Valid values:

  • WeakConstraint :

    Weak constraint calendar.

  • StrongConstraint :

    Strong constraint calendar.

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:

  • OneMonthBefore: One month in advance.

  • OneWeekBefore: One week in advance.

  • ThreeDaysBefore: Three days in advance.

Valid values:

  • OneMonthBefore :

    One month in advance.

  • ThreeDaysBefore :

    Three days in advance.

  • OneWeekBefore :

    One week in advance.

OneMonthBefore

OverduePolicy

string

No

The scheduling policy after the calendar expires. Required when Type is set to StrongConstraint.

Valid values:

  • Normal: Normal scheduling.

  • Pause: Pause scheduling.

  • Skip: Dry run.

Valid values:

  • Pause :

    Pause scheduling.

  • Skip :

    Dry run.

  • Normal :

    Normal scheduling.

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:

  • Normal: Normal scheduling.

  • Pause: Pause scheduling.

  • Skip: Dry run.

Valid values:

  • Pause :

    Pause scheduling.

  • Skip :

    Dry run.

  • Normal :

    Normal scheduling.

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.