Skip to content

Data api publish entries

Yuji Takayama edited this page Jul 10, 2013 · 2 revisions

Publish: entries

Rebuild the static archives in relation to specified entries.

Authorization is required.

Request

HTTP Request

This method accepts GET only.

GET https://your-host/your-mt-api.cgi/v1/publish/entries

Parameters

Method Parameters

Not available.

Query Parameters

Parameter Type Description
ids string This is an required parameter. The comma separated ID list of entries to rebuild.

Request Body

Do not supply a request body.

Response

Parameter Type Description
status string The status text of this rebuild.
Rebuilding
Not yet completed.
User should start next phase that implies by X-MT-Next-Phase-URL response header.
(In JavaScript library, a next phase is started automatically.)
Complete
All the static archives were rebuilded.
startTime iso 8601 datetime The time which started rebuilding.
restIds string The comma separated ID list of entries which has not been rebuilt

Header

Key Description
X-MT-Next-Phase-URL If status is "Rebuilding", user should start next phase that implies by this header, manually.
(In JavaScript library, a next phase is started automatically.)

Status Code

Code Description
200 no error
403 Do not have permission to publish the requested entry.

Example

GET /mt-api.cgi/sites/publish/entries?ids=1,2,3
Host: www.example.com

HTTP/1.0 200 OK
Content-Type: application/json
Content-length: ...
X-MT-Next-Phase-URL:/publish/entries?blogId=0&ids=64%2C57%2C8%2C42%2C56%2C46%2C45%2C65%2C44%2C55&startTime=2013-05-20T05%3A21%3A53%2B09%3A00
Clone this wiki locally