Download OpenAPI specification:Download
Upload a file.
Authorization is required.
site_id required | integer |
autoRenameIfExists | integer Enum: 0 1 If this value is "1" and the file with the same filename exists, the uploaded file is automatically renamed to the random generated name. Default is "0". |
file | string <binary> The actual file data |
normalizeOrientation | integer Enum: 0 1 If this value is "1" and the uploaded file has a orientation information in Exif, this file's orientation is automatically normalized. Default is "1". |
path | string The upload destination. You can specify the path to the under the site path. |
{- "description": "string",
- "filename": "string",
- "id": "string",
- "label": "string",
- "mimeType": "string",
- "tags": [
- "string"
], - "url": "string"
}
Invalidate current session. This is like logout. All access tokens related to that session are invalidated too.
Authorization is required. but if there is an effective session, user can revoke by the following methods.
In the case of a web browser, can be authorized by httponly-cookie.
In the case of other than a browser, can be authorized by sending a sessionId that is retrieved via authentication endpoints in MTAuth request header.
MTAuth sessionId={retrieved sessionId}
X-MT-Authorization | string Input |
clientId | string This is not required if you specify session id via "X-MT-Authorization" request header. You can create new access token if you have a session id related to this clientId, although you do not have an access token. |
{- "status": "string"
}
Create new session and access token. This is like login.
clientId | string This is not required if you specify session id via "X-MT-Authorization" request header. You can create new access token if you have a session id related to this clientId, although you do not have an access token. |
mtDataApiLoginMagicToken | string This is not required if you authenticate except via browser. If this parameter is passed and valid the MT will set cookie in order to start a session. |
password | string <password> The password of the user. |
remember | integer Enum: 0 1 If true (generally, "1" is specified.), a new session will be created as a persistent session. If you want to specify false, you can pass "" or "0" to this parameter. |
username | string The username to authenticate. |
{- "accessToken": "string",
- "expiresIn": 0,
- "remember": true,
- "sessionId": "string"
}
Invalidate current access token. This is not logout. If the browser has active session id, new access token can be obtained easily.
Authorization is required.
{- "status": "string"
}
Create new access token related to current session.
In order to create new access token, in the case of a web browser, it is necessary to create session via authentication endpoints beforehand.
In the case of other than a browser, it is necessary to send a sessionId that is retrieved via authentication endpoints in MTAuth request header.
MTAuth sessionId={retrieved sessionId}
X-MT-Authorization | string Input |
clientId | string This is not required if you specify session id via "X-MT-Authorization" request header. You can create new access token if you have a session id related to this clientId, although you do not have an access token. |
{- "accessToken": "string",
- "expiresIn": 0
}
Retrieve a list of categories.
site_id required | integer |
sortBy | string Enum: "user_custom" "label" This is an optional parameter. user_custom(default) Sort order you specified on the Manage Categories screen. labelSort by the label of each categories. |
sortOrder | string Enum: "ascend" "descend" This is an optional parameter. ascend(default) Return categories in ascending order. descendReturn categories in descending order. |
{- "items": [
- {
- "basename": "string",
- "blog": {
- "id": 0
}, - "class": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "description": "string",
- "id": 0,
- "label": "string",
- "parent": "string"
}
], - "totalResults": 0
}
Retrieve a list of comments.
Authorization is required to include unpublished comments
site_id required | integer |
limit | integer This is an optional parameter. Maximum number of comments to retrieve. Default is 10. |
offset | integer This is an optional parameter. 0-indexed offset. Default is 0. |
includeIds | string This is an optional parameter. The comma separated ID list of comments to include to result. |
excludeIds | string This is an optional parameter. The comma separated ID list of comments to exclude from result. |
status | string Enum: "Approved" "Pending" "Spam" This is an optional parameter. Filter by status. Approvedcomment_visible is 1 and comment_junk_status is 1. Pendingcomment_visible is 0 and comment_junk_status is 1. Spamcomment_junk_status is -1. |
entryStatus | string Enum: "Draft" "Publish" "Review" "Future" "Spam" This is an optional parameter. Filter by parent entry's status. Draftentry_status is 1. Publishentry_status is 2. Reviewentry_status is 3. Futureentry_status is 4. Spamentry_status is 5. |
X-MT-Authorization | string Input |
{- "items": [
- {
- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
], - "totalResults": 0
}
Delete a comment.
Authorization is required.
site_id required | integer |
comment_id required | integer |
{- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
Retrieve a single comment by its ID.
Authorization is required if the comment status is "unpublished". If the comment status is "published", then this method can be called without authorization.
site_id required | integer |
comment_id required | integer |
X-MT-Authorization | string Input |
{- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
Update a comment.
Authorization is required.
site_id required | integer |
comment_id required | integer |
object (comment_updatable) |
{- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
Retrieve a list of comments for an entry.
Authorization is required to include unpublished comments
site_id required | integer |
entry_id required | integer |
limit | integer This is an optional parameter. Maximum number of comments to retrieve. Default is 10. |
offset | integer This is an optional parameter. 0-indexed offset. Default is 0. |
X-MT-Authorization | string Input |
{- "items": [
- {
- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
], - "totalResults": 0
}
Create a new comment on an entry.
Authorization is required.
site_id required | integer |
entry_id required | integer |
object (comment_updatable) |
{- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
Reply to specified comment.
Authorization is required.
site_id required | integer |
entry_id required | integer |
comment_id required | integer |
object (comment_updatable) |
{- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
Retrieves Data API version of the server.
This endpoint has been available since Movable Type 6.2.4.
This endpoint does not need /v3 or something API endpoint version identifier.
You can call like: https://host/path/your-mt-data-api.cgi/version
{- "apiVersion": 0,
- "endpointVersion": "string"
}
Retrieve a list of endpoints.
includeComponents | string This is an optional parameter. The comma separated ID list of components (a.k.a plugin) to include to result. |
excludeComponents | string This is an optional parameter. The comma separated ID list of components (a.k.a plugin) to exclude from result. |
{- "items": [
- {
- "component": {
- "id": "string",
- "name": "string"
}, - "format": "string",
- "id": "string",
- "resources": [
- "string"
], - "route": "string",
- "verb": "string",
- "version": "string"
}
], - "totalResults": 0
}
Rebuild the static archives in relation to specified entries.
Authorization is required.
ids | string This is an required parameter. The comma separated ID list of entries to rebuild. |
blogId | integer This is an optional parameter. |
startTime | string This is an optional parameter. |
{- "restIds": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "status": "Rebuilding"
}
Retrieve a list of entries.
Authorization is required to include unpublished entries.
site_id required | integer |
search | string This is an optional parameter. Search query. |
searchFields | string This is an optional parameter. The comma separated field name list to search. Default is 'title,body,more,keywords,excerpt,basename' |
status | string Enum: "Draft" "Publish" "Review" "Future" "Spam" "Unpublish" This is an optional parameter. Filter by status. Draftentry_status is 1. Publishentry_status is 2. Reviewentry_status is 3. Futureentry_status is 4. Spamentry_status is 5. Unpublishentry_status is 6. |
limit | integer This is an optional parameter. Maximum number of entries to retrieve. Default is 10. |
offset | integer This is an optional parameter. 0-indexed offset. Default is 0. |
includeIds | string This is an optional parameter. The comma separated ID list of entries to include to result. |
excludeIds | string This is an optional parameter. The comma separated ID list of entries to exclude from result. |
sortBy | string Enum: "authored_on" "title" "created_on" "modified_on" This is an optional parameter. authored_on(default) Sort by the Published time of each entries. titleSort by the title of each entries. created_onSort by the created time of each entries. modified_onSort by the modified time of each entries. |
sortOrder | string Enum: "descend" "ascend" This is an optional parameter. descend(default) Return entries in descending order. For the date, it means from newest to oldest. ascendReturn entries in ascending order. For the date, it means from oldest to newset. |
maxComments | integer This is an optional parameter. Maximum number of comments to retrieve as part of the Entries resource. If this parameter is not supplied, no comments will be returned. |
maxTrackbacks | integer This is an optional parameter. Maximum number of received trackbacks to retrieve as part of the Entries resource. If this parameter is not supplied, no trackbacks will be returned. |
fields | string The field list to retrieve as part of the Entries resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
X-MT-Authorization | string Input |
{- "items": [
- {
- "allowComments": true,
- "allowTrackbacks": true,
- "assets": [
- {
- "description": "string",
- "filename": "string",
- "id": "string",
- "label": "string",
- "mimeType": "string",
- "tags": [
- "string"
], - "url": "string"
}
], - "author": {
- "displayName": "string",
- "id": "string",
- "userpicUrl": "string"
}, - "basename": "string",
- "blog": {
- "id": 0
}, - "body": "string",
- "categories": [
- "string"
], - "class": "string",
- "commentCount": 0,
- "comments": [
- {
- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
], - "createdDate": "2019-08-24T14:15:22Z",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "excerpt": "string",
- "id": 0,
- "keywords": "string",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "more": "string",
- "permalink": "string",
- "pingsSentUrl": [
- "string"
], - "status": "string",
- "tags": [
- "string"
], - "title": "string",
- "trackbackCount": 0,
- "trackbacks": [
- {
- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
], - "updatable": true
}
], - "totalResults": 0
}
Create a new entry.
Authorization is required.
site_id required | integer |
object (entry_updatable) |
{- "allowComments": true,
- "allowTrackbacks": true,
- "assets": [
- {
- "description": "string",
- "filename": "string",
- "id": "string",
- "label": "string",
- "mimeType": "string",
- "tags": [
- "string"
], - "url": "string"
}
], - "author": {
- "displayName": "string",
- "id": "string",
- "userpicUrl": "string"
}, - "basename": "string",
- "blog": {
- "id": 0
}, - "body": "string",
- "categories": [
- "string"
], - "class": "string",
- "commentCount": 0,
- "comments": [
- {
- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
], - "createdDate": "2019-08-24T14:15:22Z",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "excerpt": "string",
- "id": 0,
- "keywords": "string",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "more": "string",
- "permalink": "string",
- "pingsSentUrl": [
- "string"
], - "status": "string",
- "tags": [
- "string"
], - "title": "string",
- "trackbackCount": 0,
- "trackbacks": [
- {
- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
], - "updatable": true
}
Delete an entry.
Authorization is required.
site_id required | integer |
entry_id required | integer |
{- "allowComments": true,
- "allowTrackbacks": true,
- "assets": [
- {
- "description": "string",
- "filename": "string",
- "id": "string",
- "label": "string",
- "mimeType": "string",
- "tags": [
- "string"
], - "url": "string"
}
], - "author": {
- "displayName": "string",
- "id": "string",
- "userpicUrl": "string"
}, - "basename": "string",
- "blog": {
- "id": 0
}, - "body": "string",
- "categories": [
- "string"
], - "class": "string",
- "commentCount": 0,
- "comments": [
- {
- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
], - "createdDate": "2019-08-24T14:15:22Z",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "excerpt": "string",
- "id": 0,
- "keywords": "string",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "more": "string",
- "permalink": "string",
- "pingsSentUrl": [
- "string"
], - "status": "string",
- "tags": [
- "string"
], - "title": "string",
- "trackbackCount": 0,
- "trackbacks": [
- {
- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
], - "updatable": true
}
Retrieve a single entry by its ID.
Authorization is required if the entry status is "unpublished". If the entry status is "published", then this method can be called without authorization.
site_id required | integer |
entry_id required | integer |
maxComments | integer This is an optional parameter. Maximum number of comments to retrieve as part of the Entries resource. If this parameter is not supplied, no comments will be returned. |
maxTrackbacks | integer This is an optional parameter. Maximum number of received trackbacks to retrieve as part of the Entries resource. If this parameter is not supplied, no trackbacks will be returned. |
fields | string This is an optional parameter. The field list to retrieve as part of the Entries resource. That list should be separated by commma. If this parameter is not specified, All fields will be returned. |
X-MT-Authorization | string Input |
{- "allowComments": true,
- "allowTrackbacks": true,
- "assets": [
- {
- "description": "string",
- "filename": "string",
- "id": "string",
- "label": "string",
- "mimeType": "string",
- "tags": [
- "string"
], - "url": "string"
}
], - "author": {
- "displayName": "string",
- "id": "string",
- "userpicUrl": "string"
}, - "basename": "string",
- "blog": {
- "id": 0
}, - "body": "string",
- "categories": [
- "string"
], - "class": "string",
- "commentCount": 0,
- "comments": [
- {
- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
], - "createdDate": "2019-08-24T14:15:22Z",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "excerpt": "string",
- "id": 0,
- "keywords": "string",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "more": "string",
- "permalink": "string",
- "pingsSentUrl": [
- "string"
], - "status": "string",
- "tags": [
- "string"
], - "title": "string",
- "trackbackCount": 0,
- "trackbacks": [
- {
- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
], - "updatable": true
}
Update an entry.
Authorization is required.
site_id required | integer |
entry_id required | integer |
object (entry_updatable) |
{- "allowComments": true,
- "allowTrackbacks": true,
- "assets": [
- {
- "description": "string",
- "filename": "string",
- "id": "string",
- "label": "string",
- "mimeType": "string",
- "tags": [
- "string"
], - "url": "string"
}
], - "author": {
- "displayName": "string",
- "id": "string",
- "userpicUrl": "string"
}, - "basename": "string",
- "blog": {
- "id": 0
}, - "body": "string",
- "categories": [
- "string"
], - "class": "string",
- "commentCount": 0,
- "comments": [
- {
- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
], - "createdDate": "2019-08-24T14:15:22Z",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "excerpt": "string",
- "id": 0,
- "keywords": "string",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "more": "string",
- "permalink": "string",
- "pingsSentUrl": [
- "string"
], - "status": "string",
- "tags": [
- "string"
], - "title": "string",
- "trackbackCount": 0,
- "trackbacks": [
- {
- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
], - "updatable": true
}
Retrieve a list of comments for an entry.
Authorization is required to include unpublished comments
site_id required | integer |
entry_id required | integer |
limit | integer This is an optional parameter. Maximum number of comments to retrieve. Default is 10. |
offset | integer This is an optional parameter. 0-indexed offset. Default is 0. |
X-MT-Authorization | string Input |
{- "items": [
- {
- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
], - "totalResults": 0
}
Create a new comment on an entry.
Authorization is required.
site_id required | integer |
entry_id required | integer |
object (comment_updatable) |
{- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
Reply to specified comment.
Authorization is required.
site_id required | integer |
entry_id required | integer |
comment_id required | integer |
object (comment_updatable) |
{- "author": {
- "displayName": "string",
- "id": 0,
- "userpicUrl": "string"
}, - "blog": {
- "id": 0
}, - "body": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": {
- "id": 0
}, - "id": 0,
- "link": "string",
- "parent": 0,
- "status": "string",
- "updatable": true
}
Retrieve a list of trackbacks for an entry.
Authorization is required to include unpublished trackbacks
site_id required | integer |
entry_id required | integer |
limit | integer This is an optional parameter. Maximum number of trackbacks to retrieve. Default is 10. |
offset | integer This is an optional parameter. 0-indexed offset. Default is 0. |
X-MT-Authorization | string Input |
{- "items": [
- {
- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
], - "totalResults": 0
}
Retrieve a list of permissions for a user.
Authorization is required and can specify only 'me' (or user's own user ID) except for a super user.
user_id required | string |
blogIds | string This is an optional parameter. The comma separated ID list of blogs to retrieve. |
{- "items": [
- {
- "blog": {
- "id": 0
}, - "permissions": [
- "string"
]
}
], - "totalResults": 0
}
Rebuild the static archives in relation to specified entries.
Authorization is required.
ids | string This is an required parameter. The comma separated ID list of entries to rebuild. |
blogId | integer This is an optional parameter. |
startTime | string This is an optional parameter. |
{- "restIds": "string",
- "startTime": "2019-08-24T14:15:22Z",
- "status": "Rebuilding"
}
site_id required | integer |
fields | string This is an optional parameter. The field list to retrieve as part of the Entries resource. If this parameter is not specified, All fields will be returned. |
{- "archiveUrl": "string",
- "class": "string",
- "description": "string",
- "id": "string",
- "name": "string",
- "url": "string"
}
Retrieve a list of blogs by user.
user_id required | string |
limit | integer This is an optional parameter. Maximum number of blogs to retrieve. Default is 25. |
offset | integer This is an optional parameter. 0-indexed offset. Default is 0. |
sortBy | string Enum: "name" "created_on" This is an optional parameter. name(default) Sort by the name of each blogs. created_onSort by the created time of each blogs. |
sortOrder | string Enum: "ascend" "descend" This is an optional parameter. ascend(default) Return blogs in ascending order. For the date, it means from oldest to newset. descendReturn blogs in descending order. For the date, it means from newest to oldest. |
includeIds | string This is an optional parameter. The comma separated ID list of blogs to include to result. |
excludeIds | string This is an optional parameter. The comma separated ID list of blogs to exclude from result. |
fields | string This is an optional parameter. the field list to retrieve as part of the Blogs resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
{- "items": [
- {
- "archiveUrl": "string",
- "class": "string",
- "description": "string",
- "id": "string",
- "name": "string",
- "url": "string"
}
], - "totalResults": 0
}
Retrieve pageviews count for each date from provider (e.g. Google Analytics).
Authorization is required.
site_id required | integer |
startDate required | string <date> This is an required parameter. Start date of data. The format is "YYYY-MM-DD". |
endDate required | string <date> This is an required parameter. End date of data. The format is "YYYY-MM-DD". |
limit | integer This is an optional parameter. Maximum number of paths to retrieve. Default is 10. |
offset | string This is an optional parameter. 0-indexed offset. Default is 0. |
path | string This is an optional parameter. The target path of data to retrieve. Default is the path of the current site. |
uniquePath | integer Enum: 0 1 This is an optional parameter. If true is given, the MT can return total pageviews for each uniqueness paths. However, that data does not contain page title because its spec. (Sometimes, Google Analytics will return another pageviews by same path.) |
{- "items": [
- {
- "date": "2019-08-24",
- "pageviews": "string",
- "visits": "string"
}
], - "totalResults": 0,
- "totals": {
- "pageviews": "string"
}
}
Retrieve visits count for each date from provider (e.g. Google Analytics).
Authorization is required.
site_id required | integer |
startDate required | string <date> This is an required parameter. Start date of data. The format is "YYYY-MM-DD". |
endDate required | string <date> This is an required parameter. End date of data. The format is "YYYY-MM-DD". |
limit | integer This is an optional parameter. Maximum number of paths to retrieve. Default is 10. |
offset | string This is an optional parameter. 0-indexed offset. Default is 0. |
path | string This is an optional parameter. The target path of data to retrieve. Default is the path of the current site. |
{- "items": [
- {
- "date": "2019-08-24",
- "pageviews": "string",
- "visits": "string"
}
], - "totalResults": 0,
- "totals": {
- "visits": "string"
}
}
Retrieve pageviews count for each path from provider (e.g. Google Analytics).
Authorization is required.
site_id required | integer |
startDate required | string <date> This is an required parameter. Start date of data. The format is "YYYY-MM-DD". |
endDate required | string <date> This is an required parameter. End date of data. The format is "YYYY-MM-DD". |
limit | integer This is an optional parameter. Maximum number of paths to retrieve. Default is 10. |
offset | string This is an optional parameter. 0-indexed offset. Default is 0. |
path | string This is an optional parameter. The target path of data to retrieve. Default is the path of the current site. |
uniquePath | integer Enum: 0 1 This is an optional parameter. If true is given, the MT can return total pageviews for each uniqueness paths. However, that data does not contain page title because its spec. (Sometimes, Google Analytics will return another pageviews by same path.) |
{- "items": [
- {
- "archiveType": "string",
- "author": {
- "id": 0
}, - "category": {
- "id": 0
}, - "entry": {
- "id": 0
}, - "pageviews": "string",
- "path": "string",
- "visits": "string"
}
], - "totalResults": 0,
- "totals": {
- "pageviews": "string"
}
}
Retrieve visits count for each date from provider (e.g. Google Analytics).
Authorization is required.
site_id required | integer |
startDate required | string <date> This is an required parameter. Start date of data. The format is "YYYY-MM-DD". |
endDate required | string <date> This is an required parameter. End date of data. The format is "YYYY-MM-DD". |
limit | integer This is an optional parameter. Maximum number of paths to retrieve. Default is 10. |
offset | string This is an optional parameter. 0-indexed offset. Default is 0. |
path | string This is an optional parameter. The target path of data to retrieve. Default is the path of the current site. |
{- "items": [
- {
- "archiveType": "string",
- "author": {
- "id": 0
}, - "category": {
- "id": 0
}, - "entry": {
- "id": 0
}, - "pageviews": "string",
- "path": "string",
- "visits": "string"
}
], - "totalResults": 0,
- "totals": {
- "visits": "string"
}
}
Retrieve a list of trackbacks for an entry.
Authorization is required to include unpublished trackbacks
site_id required | integer |
entry_id required | integer |
limit | integer This is an optional parameter. Maximum number of trackbacks to retrieve. Default is 10. |
offset | integer This is an optional parameter. 0-indexed offset. Default is 0. |
X-MT-Authorization | string Input |
{- "items": [
- {
- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
], - "totalResults": 0
}
Retrieve a list of trackbacks.
Authorization is required to include unpublished trackbacks
site_id required | integer |
limit | integer This is an optional parameter. Maximum number of trackbacks to retrieve. Default is 10. |
offset | integer This is an optional parameter. 0-indexed offset. Default is 0. |
includeIds | string This is an optional parameter. The comma separated ID list of trackbacks to include to result. |
excludeIds | string This is an optional parameter. The comma separated ID list of trackbacks to exclude from result. |
X-MT-Authorization | string Input |
{- "items": [
- {
- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
], - "totalResults": 0
}
Delete a trackbacks.
Authorization is required.
site_id required | integer |
ping_id required | integer |
{- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
Retrieve a single trackback by its ID.
Authorization is required if the trackback status is "unpublished". If the trackback status is "published", then this method can be called without authorization.
site_id required | integer |
ping_id required | integer |
X-MT-Authorization | string Input |
{- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
Update a trackbacks.
Authorization is required.
site_id required | integer |
ping_id required | integer |
object (trackback_updatable) |
{- "blog": {
- "id": 0
}, - "blogName": "string",
- "customFields": [
- {
- "basename": "string",
- "value": "string"
}
], - "date": "2019-08-24T14:15:22Z",
- "entry": "string",
- "excerpt": "string",
- "id": 0,
- "ip": "string",
- "status": "string",
- "title": "string",
- "updatable": true,
- "url": "string"
}
Retrieve a single user by its ID.
Authorization is required if you want to retrieve private properties.
user_id required | string |
fields | string This is an optional parameter. The field list to retrieve as part of the Users resource. This list should be separated by comma. If this parameter is not specified, All fields will be returned. |
X-MT-Authorization | string Input |
{- "displayName": "string",
- "email": "string",
- "id": "string",
- "language": "string",
- "name": "string",
- "updatable": true,
- "url": "string",
- "userpicUrl": "string"
}
Update user data.
Authorization is required.
user_id required | string |
object (user_updatable) |
{- "displayName": "string",
- "email": "string",
- "id": "string",
- "language": "string",
- "name": "string",
- "updatable": true,
- "url": "string",
- "userpicUrl": "string"
}
Retrieve a list of permissions for a user.
Authorization is required and can specify only 'me' (or user's own user ID) except for a super user.
user_id required | string |
blogIds | string This is an optional parameter. The comma separated ID list of blogs to retrieve. |
{- "items": [
- {
- "blog": {
- "id": 0
}, - "permissions": [
- "string"
]
}
], - "totalResults": 0
}
Retrieve a list of blogs by user.
user_id required | string |
limit | integer This is an optional parameter. Maximum number of blogs to retrieve. Default is 25. |
offset | integer This is an optional parameter. 0-indexed offset. Default is 0. |
sortBy | string Enum: "name" "created_on" This is an optional parameter. name(default) Sort by the name of each blogs. created_onSort by the created time of each blogs. |
sortOrder | string Enum: "ascend" "descend" This is an optional parameter. ascend(default) Return blogs in ascending order. For the date, it means from oldest to newset. descendReturn blogs in descending order. For the date, it means from newest to oldest. |
includeIds | string This is an optional parameter. The comma separated ID list of blogs to include to result. |
excludeIds | string This is an optional parameter. The comma separated ID list of blogs to exclude from result. |
fields | string This is an optional parameter. the field list to retrieve as part of the Blogs resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
{- "items": [
- {
- "archiveUrl": "string",
- "class": "string",
- "description": "string",
- "id": "string",
- "name": "string",
- "url": "string"
}
], - "totalResults": 0
}