younifyd
Menu

Get Job

Get Job

GET/hubs/{hubId}/jobs/{jobId}

Use it in a workflow

  1. Add a step and choose the Amplience connector.
  2. Pick the Get Job action (under Jobs).
  3. Fill in the fields below, then reference the result from later steps as {{getJob.response.data}}.

Request

Path parameters

hubIdstringrequired

Hub ID

jobIdstringrequired

Job Id

Response

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

idstring

ID

labelstring

Job label

statusstring

Status of Job

One ofCREATEDIN_PROGRESSFAILEDCOMPLETED

stateChangesarray<object>

Job state changes

statusstring

Status of Job

One ofCREATEDIN_PROGRESSFAILEDCOMPLETED

timestampstring (date-time)

Date/Time

jobTypestring

Type of Job

One ofDEEP_SYNC_JOB

originHubIdstring

ID

destinationHubIdstring

ID

rootContentItemIDsarray<string>
associatedHubIdsarray<string>
errorsarray<object>

Job errors

entityobject2 fields
errorResponseobject3 fields
createdBystring (uuid)

Created by User Id

createdDatestring (date-time)

Created Date

_linksobject

Resource HAL links

selfanyrequired
jobany
json
{
  "id": "00112233445566778899aabb",
  "label": "Anya Finn",
  "status": "CREATED",
  "stateChanges": [
    {
      "status": "CREATED",
      "timestamp": "2019-01-01T00:00:00.000Z"
    }
  ],
  "jobType": "DEEP_SYNC_JOB",
  "originHubId": "00112233445566778899aabb",
  "destinationHubId": "00112233445566778899aabb",
  "rootContentItemIDs": [
    "00112233445566778899aabb"
  ],
  "associatedHubIds": [
    "00112233445566778899aabb, 00112233445566778899aabb"
  ],
  "errors": [
    {
      "entity": {
        "entityId": "00112233-4455-6677-8899-aabbccddeeff",
        "entityType": "Hub"
      },
      "errorResponse": {
        "code": "SUCCESS",
        "level": "INFO",
        "message": null
      }
    }
  ],
  "createdBy": "00112233-4455-6677-8899-aabbccddeeff",
  "createdDate": "2019-01-01T00:00:00.000Z"
}

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