younifyd
Menu

Create Snapshot Pubishing Job

Create Publishing-Job for Snapshot

POST/snapshots/{snapshotId}/publishing-jobs

Use it in a workflow

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

Request

Path parameters

snapshotIdstringrequired

Snapshot ID

Request body

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

idstringrequired

ID

scheduledDatestringrequired

Scheduled date & time for Publishing Job

createdDatestringrequired

Date Publishing Job was created

createdBystringrequired

User who created the Publishing Job

statestringrequired

State of Publishing Job

One ofCREATEDCANCELLEDPREPARINGWAITINGPUBLISHINGFAILEDCOMPLETED

publishErrorStatusstring

Publish error status (only present if `state=FAILED`)

_linksobjectrequired

Resource HAL links

selfanyrequired
publishing-jobanyrequired
snapshotanyrequired
cancelany
json
{
  "id": "00112233445566778899aabb",
  "scheduledDate": "2018-01-01T00:00:00Z",
  "createdDate": "2018-01-01T00:00:00Z",
  "createdBy": "00112233-4455-6677-8899-aabbccddeeff",
  "state": "CREATED",
  "_links": {
    "self": null,
    "publishing-job": null,
    "snapshot": null,
    "cancel": null
  },
  "publishErrorStatus": "string"
}

Response

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

idstring

ID

scheduledDatestring

Scheduled date & time for Publishing Job

createdDatestring

Date Publishing Job was created

createdBystring

User who created the Publishing Job

statestring

State of Publishing Job

One ofCREATEDCANCELLEDPREPARINGWAITINGPUBLISHINGFAILEDCOMPLETED

publishErrorStatusstring

Publish error status (only present if `state=FAILED`)

_linksobject

Resource HAL links

selfanyrequired
publishing-jobanyrequired
snapshotanyrequired
cancelany
json
{
  "id": "00112233445566778899aabb",
  "scheduledDate": "2018-01-01T00:00:00Z",
  "createdDate": "2018-01-01T00:00:00Z",
  "createdBy": "00112233-4455-6677-8899-aabbccddeeff",
  "state": "CREATED",
  "_links": {
    "self": null,
    "publishing-job": null,
    "snapshot": null,
    "cancel": null
  },
  "publishErrorStatus": "string"
}

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