publishQueue

View as Markdown

publishQueue

The Publish Queue displays the historical and current details of activities such as publishing, unpublishing, or deleting that can be performed on entries and/or assets. It also shows details of Release deployments. These details include time, entry, content type, version, language, user, environment, and status.

cancelScheduledAction

The "Cancel Scheduled Action" request will allow you to cancel any scheduled publishing or unpublishing activity of entries and/or assets and cancel the deployment of releases.

import contentstack;

Contentstack contentstack = new Contentstack.Builder().build();

PublishQueue publishQueue = contentstack.stack().publishQueue();

Call<ResponseBody> response = publishQueue.cancelScheduledAction().execute();

if (response.isSuccessful) {

    System.out.println("Response" + response);

}

addHeader

Sets header for the request.
NameTypeDescription
key (required)String
Header key for the request.
value (required)Object
Header value for the request.
import contentstack;

Contentstack contentstack = new Contentstack.Builder().build();

PublishQueue publishQueue = contentstack.stack().publishQueue();

publishQueue.addHeader("key", value);

FetchActivity

The "Get publish queue activity" request returns comprehensive information on a specific publish, unpublish, or delete action performed on an entry and/or asset. You can also retrieve details of a specific release deployment.

import contentstack;

Contentstack contentstack = new Contentstack.Builder().build();

PublishQueue publishQueue = contentstack.stack().publishQueue();

Call<ResponseBody> response = publishQueue.fetchActivity().execute();

if (response.isSuccessful) {

    System.out.println("Response" + response);

}

removeParam

Set header for the request.

NameTypeDescription
key (required)String

Removes query param using the key of request.

import contentstack;

Contentstack contentstack = new Contentstack.Builder().build();

PublishQueue publishQueue = contentstack.stack().publishQueue();

publishQueue.removeHeader("key");

find

The "Get publish queue" request returns comprehensive information on activities such as publish, unpublish, and delete performed on entries and/or assets. This request also includes the details of the release deployments in the response body.

import contentstack;

Contentstack contentstack = new Contentstack.Builder().build();

PublishQueue publishQueue = contentstack.stack().publishQueue();

Call<ResponseBody> response = publishQueue.find().execute();

if (response.isSuccessful) {

    System.out.println("Response" + response);

}

addParam

Sets header for the request.
NameTypeDescription
key (required)String
Query parameter key for the request.
value (required)Object
Query parameter value for the request.
import contentstack;

Contentstack contentstack = new Contentstack.Builder().build();

PublishQueue publishQueue = contentstack.stack().publishQueue();

publishQueue.addParam("key", value);