Data api publish entries
Yuji Takayama edited this page Jul 10, 2013
·
2 revisions
Rebuild the static archives in relation to specified entries.
Authorization is required.
This method accepts GET only.
GET https://your-host/your-mt-api.cgi/v1/publish/entries
Not available.
Parameter | Type | Description |
---|---|---|
ids | string | This is an required parameter. The comma separated ID list of entries to rebuild. |
Do not supply a request body.
Parameter | Type | Description |
---|---|---|
status | string |
The status text of this rebuild.
|
startTime | iso 8601 datetime | The time which started rebuilding. |
restIds | string | The comma separated ID list of entries which has not been rebuilt |
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.) |
Code | Description |
---|---|
200 | no error |
403 | Do not have permission to publish the requested entry. |
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