Unpublish or schedule unpublishing of a language variant

PUT https://manage.kontent.ai/v2/projects/:environment_id/items/:item_identifier/variants/:language_identifier/unpublish-and-archive

Unpublish the specified language variant and change its workflow step to Archived or schedule these operations.

  • Equivalent to the UI operations of unpublishing and adding an unpublish date.
  • You can unpublish only a published language variant.
  • You can schedule for unpublishing only variants that are published or scheduled for publishing.

Request Body

{"scheduled_to"=>"<dateTime>", "display_timezone"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring