younifyd
Menu

Post Bulk Copy Item Job

Post Bulk Copy Item Job

POST/hubs/{hubId}/bulk-copy-item

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Post Bulk Copy Item Job action (under Hubs).
  3. Fill in the fields below, then reference the result from later steps as {{postBulkCopyItemJob.response.data}}.

Request

Path parameters

hubIdstringrequired

Hub ID

Request body

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

selectionarray<object>
contentItemIdstringrequired

Source Content Item ID (used to copy an existing Content Item)

versionintegerrequired

Version of content item to archive

contentRepositoryIdstringrequired

ID of content repo

folderIdstring

ID of the content folder

namestringrequired
labelstringrequired
json
{
  "selection": [
    {
      "contentItemId": "00112233-4455-6677-8899-aabbccddeeff",
      "version": 1,
      "contentRepositoryId": "00112233-4455-6677-8899-aabbccddaabb",
      "name": "New Name",
      "label": "label1",
      "folderId": "00112233-4455-6677-8899-aabbccddddcc"
    }
  ]
}

Response

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

idstring

ID

typestring

Type of job operation

statusstring

Status of Job

One ofCREATEDSTARTEDPARTIALFAILEDCOMPLETED

resultsobject
succeededarray<any>
failedarray<any>
createdDatestring (date-time)

Created Date

createdBystring (uuid)

Created by User Id

_linksobject

Resource HAL links

selfanyrequired
bulk-copy-itemanyrequired
json
{
  "id": "00112233-4455-6677-8899-aabbccddeeff",
  "type": "COPY",
  "status": "CREATED",
  "results": {
    "succeeded": [
      null
    ],
    "failed": [
      null
    ]
  },
  "createdDate": "2019-01-01T00:00:00.000Z",
  "createdBy": "00112233-4455-6677-8899-aabbccddeeff",
  "_links": {
    "self": null,
    "bulk-copy-item": null
  }
}

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