diff --git a/js/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.js b/js/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.js index 143c6092..1bc4deec 100644 --- a/js/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.js +++ b/js/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.js @@ -15,7 +15,7 @@ const response = await client.publishLanguageVariant() // .byLanguageCodename('es-mx') // To schedule publish date, use .withData({scheduled_to: 'datetime-to-publish-at'}) .withData({ - scheduled_to: '2038-01-19T04:14:08+01:00', + scheduled_to: '2038-01-19T04:14:08', display_timezone: "Australia/Sydney" }) // To publish now, use .withoutData() diff --git a/js/management-api-v2/cm_api_v2_put_variant_unpublish_archive.js b/js/management-api-v2/cm_api_v2_put_variant_unpublish_archive.js index beb88a9b..b1fdfdd3 100644 --- a/js/management-api-v2/cm_api_v2_put_variant_unpublish_archive.js +++ b/js/management-api-v2/cm_api_v2_put_variant_unpublish_archive.js @@ -15,7 +15,7 @@ const response = await client.unpublishLanguageVariant() .byLanguageCodename('es-mx') // To schedule unpublish date, use .withData({scheduled_to: 'datetime-to-unpublish-at'}) .withData({ - scheduled_to: '2038-01-19T04:14:08+01:00', + scheduled_to: '2038-01-19T04:14:08', display_timezone: "Australia/Sydney" }) // To unpublish now, use .withoutData() diff --git a/net/management-api-v2/cm_api_v2_put_variant.cs b/net/management-api-v2/cm_api_v2_put_variant.cs index 93fa0ec1..b0525761 100644 --- a/net/management-api-v2/cm_api_v2_put_variant.cs +++ b/net/management-api-v2/cm_api_v2_put_variant.cs @@ -65,6 +65,10 @@ Mode = "autogenerated" }, }, + DueDate = new DueDateModel + { + Value = DateTime.Parse("2024-02-26T06:04:00.7069564Z") + }, new WorkflowStepIdentifier(Reference.ByCodename("default"), Reference.ByCodename("review"))) }, ); diff --git a/net/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.cs b/net/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.cs index f57a6285..bc0d8a21 100644 --- a/net/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.cs +++ b/net/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.cs @@ -20,6 +20,6 @@ // Scheduled publish await client.SchedulePublishingOfLanguageVariantAsync(identifier, new ScheduleModel { - ScheduleTo = DateTime.Parse("2038-01-19T04:14:08+01:00"), + ScheduleTo = DateTime.Parse("2038-01-19T04:14:08"), DisplayTimeZone = "Australia/Sydney" }); diff --git a/net/management-api-v2/cm_api_v2_put_variant_unpublish_archive.cs b/net/management-api-v2/cm_api_v2_put_variant_unpublish_archive.cs index 8556fd0b..82964e22 100644 --- a/net/management-api-v2/cm_api_v2_put_variant_unpublish_archive.cs +++ b/net/management-api-v2/cm_api_v2_put_variant_unpublish_archive.cs @@ -20,6 +20,6 @@ // Scheduled unpublish await client.ScheduleUnpublishingOfLanguageVariantAsync(identifier, new ScheduleModel { - ScheduleTo = DateTime.Parse("2038-01-19T04:14:08+01:00"), + ScheduleTo = DateTime.Parse("2038-01-19T04:14:08"), DisplayTimeZone = "Australia/Sydney" }); diff --git a/rest/management-api-v2/cm_api_v2_put_variant.curl b/rest/management-api-v2/cm_api_v2_put_variant.curl index 1a006680..f1f9b943 100644 --- a/rest/management-api-v2/cm_api_v2_put_variant.curl +++ b/rest/management-api-v2/cm_api_v2_put_variant.curl @@ -67,5 +67,8 @@ curl --request PUT \ }, "mode": "autogenerated" } - ] + ], + "due_date": { + "value": "2024-02-26T06:04:00.7069564Z" + } }' diff --git a/rest/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.curl b/rest/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.curl index a7c1932d..d232a647 100644 --- a/rest/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.curl +++ b/rest/management-api-v2/cm_api_v2_put_variant_publish_or_schedule.curl @@ -9,6 +9,6 @@ curl --request PUT \ --header 'Content-type: application/json' \ --data ' { - "scheduled_to": "2038-01-19T04:14:08+01:00", - "display_timezone": "Europe/Prague" + "scheduled_to": "2038-01-19T04:14:08", + "display_timezone": "Australia/Sydney" }' diff --git a/rest/management-api-v2/cm_api_v2_put_variant_unpublish_archive.curl b/rest/management-api-v2/cm_api_v2_put_variant_unpublish_archive.curl index 89424647..6ffe6ca3 100644 --- a/rest/management-api-v2/cm_api_v2_put_variant_unpublish_archive.curl +++ b/rest/management-api-v2/cm_api_v2_put_variant_unpublish_archive.curl @@ -5,6 +5,6 @@ curl --request PUT \ --header 'Authorization: Bearer ' \ --header 'Content-type: application/json' \ --data '{ - "scheduled_to": "2038-01-19T04:14:08+01:00", - "display_timezone": "Europe/Prague" + "scheduled_to": "2038-01-19T04:14:08", + "display_timezone": "Australia/Sydney" }'