younifyd
Menu

Post Bulk Update Workflow Job

Post Bulk Update Workflow Job

POST/hubs/{hubId}/bulk-update-workflow

Use it in a workflow

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

Request

Path parameters

hubIdstringrequired

Hub ID

Request body

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

selectionarray<object>
contentItemIdstring

ID of content item

versioninteger

Version of content item

workflowobject
statestring

Workflow State ID

json
{
  "selection": [
    {
      "contentItemId": "00112233-4455-6677-8899-aabbccddeeff",
      "version": 1
    }
  ],
  "workflow": {
    "state": "00112233445566778899aabb"
  }
}

Response

Returns 200 with an object. Read it in later steps with {{postBulkUpdateWorkflowJob.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-update-workflowanyrequired
json
{
  "id": "00112233-4455-6677-8899-aabbccddeeff",
  "type": "UPDATE_WORKFLOW",
  "status": "CREATED",
  "results": {
    "succeeded": [
      null
    ],
    "failed": [
      null
    ]
  },
  "createdDate": "2019-01-01T00:00:00.000Z",
  "createdBy": "00112233-4455-6677-8899-aabbccddeeff",
  "_links": {
    "self": null,
    "bulk-update-workflow": null
  }
}

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