-
Notifications
You must be signed in to change notification settings - Fork 9
Data api entries delete
Yuji Takayama edited this page Jul 10, 2013
·
1 revision
Delete an entry.
Authorization is required.
This method accepts DELETE and POST with __method=DELETE.
DELETE https://your-host/your-mt-api.cgi/v1/sites/{blog_id}/entries/{entry_id}
| Parameter | Type | Description |
|---|---|---|
| blog_id | unsigned integer | The blog ID. |
| entry_id | unsigned integer | The entry ID. |
Not available.
| Parameter | Type | Description |
|---|---|---|
| __method | string | This is not required but if request method is not a 'DELETE', should be set as 'DELETE' |
If successful, this method will return deleted an Entries resource as the response body.
| Code | Description |
|---|---|
| 200 | no error |
| 401 | Authentication requires |
| 403 | Do not have permission to delete an entry. |
| 404 | Entry (or site) not found. |
| 405 | Request method is not 'DELETE' or 'POST' with '__method=DELETE' |