Skip to content

Data api entries update

Yuji Takayama edited this page Jul 10, 2013 · 1 revision

Entries: update

Update an entry.

Authorization is required.

Request

HTTP Request

This method accepts PUT and POST with __method=PUT.

PUT https://your-host/your-mt-api.cgi/v1/sites/{blog_id}/entries/{entry_id}

Parameters

Method Parameters

Parameter Type Description
blog_id unsigned integer The blog ID.
entry_id unsigned integer The entry ID.

Query Parameters

Not available.

Request Body

Parameter Type Description
__method string This is not required but if request method is 'POST', should be set as 'PUT'
entry Entries (JSON) An Entries resource for update.

Response

If successful, this method will return an Entries resource as the response body.

Status Code

Code Description
200 no error
401 Authentication requires
403 Do not have permission to update an entry.
404 Entry (or site) not found.
405 Request method is not 'PUT' or 'POST' with '__method=PUT'
Clone this wiki locally