younifyd
Menu

Restore Content By Content Version Number

Restore Content by Content Version Number

PUT/content-items/{contentItemId}/restore

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Restore Content By Content Version Number action (under Content Items).
  3. Fill in the fields below, then reference the result from later steps as {{restoreContentByContentVersionNumber.response.data}}.

Request

Path parameters

contentItemIdstringrequired

Content Item ID

Request body

Enter the body as JSON in the step's Body field.

versionnumberrequired

Version

restoreVersionnumberrequired

Restore Version

json
{
  "version": 2,
  "restoreVersion": 1
}

Response

Returns 200 with an object. Read it in later steps with {{restoreContentByContentVersionNumber.response.data.<field>}}.

idstring

ID

contentRepositoryIdstring

ID

folderIdstring

ID

bodyobject
_metaobject3 fields
headingstring

heading

linkstring (uri)

Link

assigneesarray<any>

Assignees

assignedDatestring (date-time)

Created Date

versionnumber

Version

labelstring

Label

statusstring

Status

createdBystring (uuid)

Created by User Id

createdDatestring (date-time)

Created Date

lastModifiedBystring (uuid)

Last Modified by User Id

lastModifiedDatestring (date-time)

Last Modified Date

deliveryIdstring (uuid)

Delivery ID

_linksobject

Resource HAL links

selfany
content-itemany
plannedany
publishany
unpublishany
linked-contentany
content-item-with-childrenany
content-item-with-parentsany
updateany
restore-versionany
content-repositoryany
content-item-versionany
content-item-versionsany
content-item-historyany
copyany
unarchiveany
archiveany
set-delivery-keyany
set-localeany
create-localizationsany
localizationsany
localization-jobsany
edition-slot-associationsany
edit-workflowany
json
{
  "id": "00112233-4455-6677-8899-aabbccddeeff",
  "contentRepositoryId": "00112233445566778899aabb",
  "folderId": "00112233445566778899aabb",
  "body": {
    "_meta": {
      "name": "Name",
      "schema": "http://deliver.bigcontent.io/schema/nested/nested-type.json",
      "deliveryKey": "promo-page/main-banner"
    },
    "heading": "Heading",
    "link": "http://anyafinn.com/buymore?campaign=shouting"
  },
  "assignees": [
    "00112233445566778899aabb"
  ],
  "assignedDate": "2019-01-01T00:00:00.000Z",
  "version": 1,
  "label": "Label",
  "status": "ACTIVE",
  "createdBy": "00112233-4455-6677-8899-aabbccddeeff",
  "createdDate": "2019-01-01T00:00:00.000Z",
  "lastModifiedBy": "00112233-4455-6677-8899-aabbccddeeff"
}

Need more? See the Amplience guide for connection setup and behaviour shared by every action.

Restore Content By Content Version Number — Amplience — Documentation