Download OpenAPI specification:
| overwrite_once |
integer
Enum:
0
1
If specify "1", the API always overwrites an existing file with the uploaded file. This parameter has been available since Movable Type 6.1.2 |
| autoRenameIfExists |
integer
Default:
0
Enum:
0
1
If this value is "1" and a file with the same filename exists, the uploaded file is automatically renamed to a random generated name. Default is "0". |
| autoRenameNonAscii |
integer
Enum:
0
1
If this value is "1", the filename is renamed non-ascii filename automatically |
| file |
string
<binary>
Actual file data |
| normalizeOrientation |
integer
Default:
1
Enum:
0
1
If this value is "1" and the uploaded file has orientation information in Exif data, 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. |
| site_id |
integer
The site ID. |
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
|
site_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"label"
The comma separated field name list to search. Default: label |
| limit |
integer
Default:
10
Maximum number of assets to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| filterKeys |
string
Default:
"class"
The comma separated field name list to filter. Default: class |
| class |
string
The target asset class to retrieve. Supported values are image, audio, video, file and any values added by plugins. If you want to retrieve multiple classes, specify the values separated by commas. |
| sortBy |
string
Default:
"created_on"
Enum:
"file_name"
"created_by"
"created_on"
file_nameSort by the filename of each asset. created_bySort by the ID of user who created each asset. created_on(default) Sort by the created time of each asset. Default: created_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn assets in descending order. ascendReturn assets in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the asset resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| relatedAssets |
integer
Enum:
0
1
If you want to retrieve related assets (e.g. thumbnail, popup html) that generated by original asset, you should specify this parameter as true. |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"totalResults": 0
}
This endpoint is marked as deprecated in v2.0.
Upload single file to specific site.
|
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. |
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
|
site_id
required
|
integer
|
|
asset_id
required
|
integer
|
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
|
site_id
required
|
integer
|
|
asset_id
required
|
integer
|
| fields |
string
The field list to retrieve as part of the asset resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| X-MT-Authorization |
string
Input
|
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
|
site_id
required
|
integer
|
|
asset_id
required
|
integer
|
|
object
(asset_updatable)
|
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
|
site_id
required
|
integer
|
|
asset_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"title,body,more,keywords,excerpt,basename"
The comma separated field name list to search. Default: title,body,more,keywords,excerpt,basename |
| limit |
integer
Default:
10
Maximum number of entries to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"authored_on"
Enum:
"authored_on"
"title"
"created_on"
"modified_on"
The field name for sort. You can specify one of following values
Default: authored_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn entries in descending order. ascendReturn entries in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the entry resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| includeIds |
string
The comma separated ID list of entries to include to result. |
| excludeIds |
string
The comma separated ID list of entries to exclude from result. |
| status |
string
Enum:
"Draft"
"Publish"
"Review"
"Future"
"Spam"
"Unpublish"
Filter by container entry's 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. |
| 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. |
| no_text_filter |
integer
Enum:
0
1
If you want to fetch the raw text, set to '1'. New in v2 |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"allowComments":
true,
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"commentCount":
0,
-
"comments":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"format":
"string",
-
"id":
0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
|
asset_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"title,body,more,keywords,excerpt,basename"
The comma separated field name list to search. Default: title,body,more,keywords,excerpt,basename |
| limit |
integer
Default:
10
Maximum number of pages to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"modified_on"
Enum:
"authored_on"
"title"
"created_on"
"modified_on"
The field name for sort. You can specify one of following values
Default: modified_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn pages in descending order. ascendReturn pages in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the page resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| includeIds |
string
The comma separated ID list of pages to include to result. |
| excludeIds |
string
The comma separated ID list of pages to exclude from result. |
| status |
string
Enum:
"Draft"
"Publish"
"Review"
"Future"
"Spam"
"Unpublish"
Filter by container page's 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. |
| maxComments |
integer
This is an optional parameter. Maximum number of comments to retrieve as part of the pages 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 pages resource. If this parameter is not supplied, no trackbacks will be returned. |
| no_text_filter |
integer
Enum:
0
1
If you want to fetch the raw text, set to '1'. New in v2 |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"excerpt":
"string",
-
"folder":
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
},
-
"format":
"string",
-
"id":
0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
],
-
"totalResults": 0
}
This endpoint requires one of parameter 'width' or 'height' or 'scale' Also, cannot use these parameters at same time.
|
site_id
required
|
integer
|
|
asset_id
required
|
integer
|
| width |
integer
The width of the thumbnail to generate. If this is the only parameter specified then the thumbnail's width will be scaled proportionally to the height. When a value longer than the original image is specified, it will be ignored. |
| height |
integer
The height of the thumbnail to generate. If this is the only parameter specified then the thumbnail's height will be scaled proportionally to the width. When both of height and width are specified, the longer side of the original image will be processed, and the lesser side will be scaled proportionally. |
| scale |
string
The percentage by which to reduce or increase the size of the current asset. |
| square |
integer
Enum:
0
1
If set to "1" then the thumbnail generated will be square, where the length of each side of the square will be equal to the shortest side of the image. |
{
-
"height": 0,
-
"url":
"string",
-
"width": 0
}
|
site_id
required
|
integer
|
|
entry_id
required
|
integer
|
| limit |
integer
Default:
10
Maximum number of assets to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| class |
string
The target asset class to retrieve. Supported values are image, audio, video, file and any values added by plugins. If you want to retrieve multiple classes, specify the values separated by commas. |
| sortBy |
string
Default:
"created_on"
Enum:
"file_name"
"created_by"
"created_on"
file_nameSort by the filename of each asset. created_bySort by the ID of user who created each asset. created_on(default) Sort by the created time of each asset. Default: created_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn assets in descending order. ascendReturn assets in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the asset resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| filterKeys |
string
Default:
"class"
The comma separated field name list to filter. Default: class |
| searchFields |
string
Default:
"label"
The comma separated field name list to search. Default: label |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
|
page_id
required
|
integer
|
| limit |
integer
Default:
10
Maximum number of assets to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| filterKeys |
string
Default:
"class"
The comma separated field name list to filter. Default: class |
| searchFields |
string
Default:
"label"
The comma separated field name list to search. Default: label |
| class |
string
The target asset class to retrieve. Supported values are image, audio, video, file and any values added by plugins. If you want to retrieve multiple classes, specify the values separated by commas. |
| sortBy |
string
Default:
"created_on"
Enum:
"file_name"
"created_by"
"created_on"
file_nameSort by the filename of each asset. created_bySort by the ID of user who created each asset. created_on(default) Sort by the created time of each asset. Default: created_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn assets in descending order. ascendReturn assets in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the asset resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"totalResults": 0
}
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 a new session and access token. This is like sign-in.
| 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>
Your Web Service Password |
| 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
Your Sign-in Name |
{
-
"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
}
|
site_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"label,basename"
The comma separated field name list to search. Default: label,basename |
| limit |
integer
Default:
10
Maximum number of categories to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"user_custom"
Enum:
"user_custom"
"created_by"
"id"
"basename"
"label"
user_customSort order you specified on the Manage Categories screen. created_bySort by the ID of user who created each category. idSort by the ID of each category. basenameSort by the basename of each category. labelSort by the label of each category. Default: user_custom |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn categories in descending order. ascendReturn categories in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the category resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| top |
integer
Default:
0
Enum:
0
1
If set to 1, retrieves only top level categories. New in v2 Default: 0 |
| includeIds |
string
The comma separated ID list of categories to include to result. |
| excludeIds |
string
The comma separated ID list of categories to exclude from result. |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authorization is required.
|
site_id
required
|
integer
|
|
object
(category_updatable)
|
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
| categories |
string
Array of category resource that were rearranged. |
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"updatable":
true
}
]
|
site_id
required
|
integer
|
|
category_id
required
|
integer
|
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
category_id
required
|
integer
|
| fields |
string
The field list to retrieve as part of the category resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| X-MT-Authorization |
string
Input
|
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
category_id
required
|
integer
|
|
object
(category_updatable)
|
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
category_id
required
|
integer
|
| maxDepth |
integer
The depth of retrieving parent categories. Default: 0 |
| includeCurrent |
integer
Default:
0
Enum:
0
1
1The list does not include current category. 0The list includes current category. Default: 0 |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
|
category_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"title,body,more,keywords,excerpt,basename"
The comma separated field name list to search. Default: title,body,more,keywords,excerpt,basename |
| limit |
integer
Default:
10
Maximum number of entries to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"authored_on"
Enum:
"authored_on"
"title"
"created_on"
"modified_on"
The field name for sort. You can specify one of following values
Default: authored_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn entries in descending order. ascendReturn entries in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the entry resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| includeIds |
string
The comma separated ID list of entries to include to result. |
| excludeIds |
string
The comma separated ID list of entries to exclude from result. |
| status |
string
Enum:
"Draft"
"Publish"
"Review"
"Future"
"Spam"
"Unpublish"
Filter by container entry's 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. |
| 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. |
| no_text_filter |
integer
Enum:
0
1
If you want to fetch the raw text, set to '1'. New in v2 |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"allowComments":
true,
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"commentCount":
0,
-
"comments":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"format":
"string",
-
"id":
0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
|
category_id
required
|
integer
|
| maxDepth |
integer
The depth of retrieving parent categories. Default: 0 |
| includeCurrent |
integer
Default:
0
Enum:
0
1
1The list does not include current category. 0The list includes current category. Default: 0 |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
|
category_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"label,basename"
The comma separated field name list to search. Default: label,basename |
| limit |
integer
Default:
10
Maximum number of categories to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"user_custom"
Enum:
"user_custom"
"created_by"
"id"
"basename"
"label"
user_customSort order you specified on the Manage Categories screen. created_bySort by the ID of user who created each category. idSort by the ID of each category. basenameSort by the basename of each category. labelSort by the label of each category. Default: user_custom |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn categories in descending order. ascendReturn categories in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the category resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| top |
integer
Default:
0
Enum:
0
1
If set to 1, retrieves only top level categories. New in v2 Default: 0 |
| includeIds |
string
The comma separated ID list of categories to include to result. |
| excludeIds |
string
The comma separated ID list of categories to exclude from result. |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
|
entry_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"label,basename"
The comma separated field name list to search. Default: label,basename |
| limit |
integer
Default:
10
Maximum number of categories to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"user_custom"
Enum:
"user_custom"
"created_by"
"id"
"basename"
"label"
user_customSort order you specified on the Manage Categories screen. created_bySort by the ID of user who created each category. idSort by the ID of each category. basenameSort by the basename of each category. labelSort by the label of each category. Default: user_custom |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn categories in descending order. ascendReturn categories in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the category resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| top |
integer
Default:
0
Enum:
0
1
If set to 1, retrieves only top level categories. New in v2 Default: 0 |
| includeIds |
string
The comma separated ID list of categories to include to result. |
| excludeIds |
string
The comma separated ID list of categories to exclude from result. |
| type |
string
Enum:
"primary"
"secondary"
primaryRetrieve primary category only secondaryRetrieve secondary categories only |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"updatable":
true
}
],
-
"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. |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| searchFields |
string
Default:
"body"
The comma separated field name list to search. Default: body |
| sortBy |
string
Default:
"id"
Default: id |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn comments in descending order. ascendReturn comments in ascending order. Default: descend |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id": 0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id": 0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id": 0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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. |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| searchFields |
string
Default:
"body"
The comma separated field name list to search. Default: body |
| sortBy |
string
Default:
"id"
Default: id |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn comments in descending order. ascendReturn comments in ascending order. Default: descend |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id": 0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id": 0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent": 0,
-
"status":
"string",
-
"updatable":
true
}
Retrieve a list of comments for a page.
Authorization is required to include unpublished comments
|
site_id
required
|
integer
|
|
page_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. |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| searchFields |
string
Default:
"body"
The comma separated field name list to search. Default: body |
| sortBy |
string
Default:
"id"
Default: id |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn comments in descending order. ascendReturn comments in ascending order. Default: descend |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
0,
-
"status":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
Create a new comment on a page.
Authorization is required.
|
site_id
required
|
integer
|
|
page_id
required
|
integer
|
|
object
(comment_updatable)
|
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id": 0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent": 0,
-
"status":
"string",
-
"updatable":
true
}
Reply to specified comment.
Authorization is required.
|
site_id
required
|
integer
|
|
page_id
required
|
integer
|
|
comment_id
required
|
integer
|
|
object
(comment_updatable)
|
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id": 0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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.1,
-
"endpointVersion":
"string"
}
|
site_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"name,basename,description,tag"
The comma separated field name list to search. Default: name,basename,description,tag |
| limit |
integer
Default:
25
Maximum number of fields to retrieve. Default: 25 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"name"
Default: name |
| sortOrder |
string
Default:
"ascend"
Enum:
"descend"
"ascend"
descendReturn fields in descending order. ascendReturn fields in ascending order. Default: ascend |
| fields |
string
The field list to retrieve as part of the field resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| filterKeys |
string
Default:
"systemObject,type"
The comma separated field name list to filter. Default: systemObject,type |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
{
-
"items":
[
-
{
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"default":
"string",
-
"description":
"string",
-
"id":
"string",
-
"name":
"string",
-
"options":
"string",
-
"required":
true,
-
"showInTheseCategories":
[
-
{
-
"id":
"string",
-
"label":
"string"
}
],
-
"systemObject":
"string",
-
"tag":
"string",
-
"type":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
|
object
(field_updatable)
|
{
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"default":
"string",
-
"description":
"string",
-
"id":
"string",
-
"name":
"string",
-
"options":
"string",
-
"required":
true,
-
"showInTheseCategories":
[
-
{
-
"id":
"string",
-
"label":
"string"
}
],
-
"systemObject":
"string",
-
"tag":
"string",
-
"type":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
field_id
required
|
integer
|
{
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"default":
"string",
-
"description":
"string",
-
"id":
"string",
-
"name":
"string",
-
"options":
"string",
-
"required":
true,
-
"showInTheseCategories":
[
-
{
-
"id":
"string",
-
"label":
"string"
}
],
-
"systemObject":
"string",
-
"tag":
"string",
-
"type":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
field_id
required
|
integer
|
| fields |
string
The field list to retrieve as part of the field resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
{
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"default":
"string",
-
"description":
"string",
-
"id":
"string",
-
"name":
"string",
-
"options":
"string",
-
"required":
true,
-
"showInTheseCategories":
[
-
{
-
"id":
"string",
-
"label":
"string"
}
],
-
"systemObject":
"string",
-
"tag":
"string",
-
"type":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
field_id
required
|
integer
|
|
object
(field_updatable)
|
{
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"default":
"string",
-
"description":
"string",
-
"id":
"string",
-
"name":
"string",
-
"options":
"string",
-
"required":
true,
-
"showInTheseCategories":
[
-
{
-
"id":
"string",
-
"label":
"string"
}
],
-
"systemObject":
"string",
-
"tag":
"string",
-
"type":
"string",
-
"updatable":
true
}
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"
}
|
site_id
required
|
integer
|
|
asset_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"title,body,more,keywords,excerpt,basename"
The comma separated field name list to search. Default: title,body,more,keywords,excerpt,basename |
| limit |
integer
Default:
10
Maximum number of entries to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"authored_on"
Enum:
"authored_on"
"title"
"created_on"
"modified_on"
The field name for sort. You can specify one of following values
Default: authored_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn entries in descending order. ascendReturn entries in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the entry resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| includeIds |
string
The comma separated ID list of entries to include to result. |
| excludeIds |
string
The comma separated ID list of entries to exclude from result. |
| status |
string
Enum:
"Draft"
"Publish"
"Review"
"Future"
"Spam"
"Unpublish"
Filter by container entry's 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. |
| 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. |
| no_text_filter |
integer
Enum:
0
1
If you want to fetch the raw text, set to '1'. New in v2 |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"allowComments":
true,
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"commentCount":
0,
-
"comments":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"format":
"string",
-
"id":
0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
|
category_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"title,body,more,keywords,excerpt,basename"
The comma separated field name list to search. Default: title,body,more,keywords,excerpt,basename |
| limit |
integer
Default:
10
Maximum number of entries to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"authored_on"
Enum:
"authored_on"
"title"
"created_on"
"modified_on"
The field name for sort. You can specify one of following values
Default: authored_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn entries in descending order. ascendReturn entries in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the entry resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| includeIds |
string
The comma separated ID list of entries to include to result. |
| excludeIds |
string
The comma separated ID list of entries to exclude from result. |
| status |
string
Enum:
"Draft"
"Publish"
"Review"
"Future"
"Spam"
"Unpublish"
Filter by container entry's 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. |
| 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. |
| no_text_filter |
integer
Enum:
0
1
If you want to fetch the raw text, set to '1'. New in v2 |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"allowComments":
true,
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"commentCount":
0,
-
"comments":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"format":
"string",
-
"id":
0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
],
-
"totalResults": 0
}
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. |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"allowComments":
true,
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"commentCount":
0,
-
"comments":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"format":
"string",
-
"id":
0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
| saveRevision |
integer
Enum:
0
1
Save a revision or not |
|
object
(entry_updatable)
|
|
| publish |
integer
Enum:
0
1
If this value is "0", the entry is not published |
{
-
"allowComments":
true,
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"commentCount": 0,
-
"comments":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"format":
"string",
-
"id": 0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
|
site_id
required
|
integer
|
| convert_breaks |
string
|
| default_cat_id |
integer
|
| default_status |
string
If you set import_type is "import_mt_format", also you can set default entry status. |
| encoding |
string
|
| file |
string
<binary>
|
| import_as_me |
integer
Default:
1
Enum:
0
1
0Preserve original user 1Import as me Default: 1 |
| import_type |
string
|
| password |
string
If you choose import_as_me is 0, you must define a default password for those new accounts. |
{
-
"message":
"string",
-
"status":
"string"
}
|
site_id
required
|
integer
|
| raw |
integer
Default:
0
Enum:
0
1
If specify "1", will be returned preview contents. |
|
object
(entry)
Updatable fields are status, title, body, more, excerpt, keywords, tags, date, basename, customFields, allowComments, format, unpublishedDate |
{
-
"preview":
"string",
-
"status":
"string"
}
Delete an entry.
Authorization is required.
|
site_id
required
|
integer
|
|
entry_id
required
|
integer
|
{
-
"allowComments":
true,
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"commentCount": 0,
-
"comments":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"format":
"string",
-
"id": 0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"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,
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"commentCount": 0,
-
"comments":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"format":
"string",
-
"id": 0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
entry_id
required
|
integer
|
| saveRevision |
integer
Enum:
0
1
Save a revision or not |
|
object
(entry_updatable)
|
|
| publish |
integer
Enum:
0
1
If this value is "0", the entry is not published |
{
-
"allowComments":
true,
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"commentCount": 0,
-
"comments":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"format":
"string",
-
"id": 0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
entry_id
required
|
integer
|
| limit |
integer
Default:
10
Maximum number of assets to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| class |
string
The target asset class to retrieve. Supported values are image, audio, video, file and any values added by plugins. If you want to retrieve multiple classes, specify the values separated by commas. |
| sortBy |
string
Default:
"created_on"
Enum:
"file_name"
"created_by"
"created_on"
file_nameSort by the filename of each asset. created_bySort by the ID of user who created each asset. created_on(default) Sort by the created time of each asset. Default: created_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn assets in descending order. ascendReturn assets in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the asset resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| filterKeys |
string
Default:
"class"
The comma separated field name list to filter. Default: class |
| searchFields |
string
Default:
"label"
The comma separated field name list to search. Default: label |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"totalResults": 0
}
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. |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| searchFields |
string
Default:
"body"
The comma separated field name list to search. Default: body |
| sortBy |
string
Default:
"id"
Default: id |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn comments in descending order. ascendReturn comments in ascending order. Default: descend |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id":
0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id": 0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"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",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"entry":
{
-
"id":
0
},
-
"id": 0,
-
"link":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent": 0,
-
"status":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
entry_id
required
|
integer
|
| raw |
integer
Default:
0
Enum:
0
1
If specify "1", will be returned preview contents. |
|
object
(entry)
Updatable fields are status, title, body, more, excerpt, keywords, tags, date, basename, customFields, allowComments, format, unpublishedDate |
{
-
"preview":
"string",
-
"status":
"string"
}
Authentication required if you want to get private properties.
|
site_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"label,basename"
The comma separated field name list to search. Default: label,basename |
| limit |
integer
Default:
10
Maximum number of folders to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"user_custom"
Enum:
"user_custom"
"created_by"
"id"
"basename"
"label"
user_customSort order you specified on the Manage Folders screen. created_bySort by the ID of creator. idSort by its own ID. basenameSort by the basename of each folders. labelSort by the label of each folders. Default: user_custom |
| sortOrder |
string
Default:
"ascend"
Enum:
"descend"
"ascend"
descendReturn folders in descending order. ascendReturn folders in ascending order. Default: ascend |
| fields |
string
The field list to retrieve as part of the folder resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| includeIds |
string
The comma separated ID list of folders to include to result. |
| excludeIds |
string
The comma separated ID list of folders to exclude from result. |
| top |
integer
Default:
0
Enum:
0
1
If set to 1, retrieves only top level folders. Default: 0 |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"path":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authorization is required.
|
site_id
required
|
integer
|
|
object
(folder_updatable)
|
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"path":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
| folders |
string
Array of folder resource that were rearranged. |
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"path":
"string",
-
"updatable":
true
}
]
|
site_id
required
|
integer
|
|
folder_id
required
|
integer
|
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"path":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
folder_id
required
|
integer
|
| fields |
string
The field list to retrieve as part of the folder resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| X-MT-Authorization |
string
Input
|
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"path":
"string",
-
"updatable":
true
}
|
site_id
required
|
integer
|
|
folder_id
required
|
integer
|
|
object
(folder_updatable)
|
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"path":
"string",
-
"updatable":
true
}
Authentication required if you want to get private properties.
|
site_id
required
|
integer
|
|
folder_id
required
|
integer
|
| maxDepth |
integer
The depth of retrieving child folders. Default: 0 |
| includeCurrent |
integer
Default:
0
Enum:
0
1
1The results includes current folder. 0The results do not include current folder. Default: 0 |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"path":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
|
folder_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"title,body,more,keywords,excerpt,basename"
The comma separated field name list to search. Default: title,body,more,keywords,excerpt,basename |
| limit |
integer
Default:
10
Maximum number of pages to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"modified_on"
Enum:
"authored_on"
"title"
"created_on"
"modified_on"
The field name for sort. You can specify one of following values
Default: modified_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn pages in descending order. ascendReturn pages in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the page resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| includeIds |
string
The comma separated ID list of pages to include to result. |
| excludeIds |
string
The comma separated ID list of pages to exclude from result. |
| status |
string
Enum:
"Draft"
"Publish"
"Review"
"Future"
"Spam"
"Unpublish"
Filter by container page's 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. |
| maxComments |
integer
This is an optional parameter. Maximum number of comments to retrieve as part of the pages 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 pages resource. If this parameter is not supplied, no trackbacks will be returned. |
| no_text_filter |
integer
Enum:
0
1
If you want to fetch the raw text, set to '1'. New in v2 |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"assets":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"fileExtension":
"string",
-
"filePath":
"string",
-
"filename":
"string",
-
"id":
"string",
-
"label":
"string",
-
"meta":
{
-
"fileSize":
0,
-
"height":
0,
-
"width":
0
},
-
"mimeType":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
"string",
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"body":
"string",
-
"categories":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
}
],
-
"class":
"string",
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"excerpt":
"string",
-
"folder":
{
-
"id":
0,
-
"label":
"string",
-
"parent":
"string"
},
-
"format":
"string",
-
"id":
0,
-
"keywords":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"more":
"string",
-
"permalink":
"string",
-
"status":
"string",
-
"tags":
[
-
"string"
],
-
"title":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authentication required if you want to get private properties.
|
site_id
required
|
integer
|
|
folder_id
required
|
integer
|
| maxDepth |
integer
The depth of retrieving parent folders. Default: 0 |
| includeCurrent |
integer
Default:
0
Enum:
0
1
1The results includes current folder. 0The results do not include current folder. Default: 0 |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"path":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authentication required if you want to get private properties.
|
site_id
required
|
integer
|
|
folder_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"label,basename"
The comma separated field name list to search. Default: label,basename |
| limit |
integer
Default:
10
Maximum number of folders to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"user_custom"
Enum:
"user_custom"
"created_by"
"id"
"basename"
"label"
user_customSort order you specified on the Manage Folders screen. created_bySort by the ID of creator. idSort by its own ID. basenameSort by the basename of each folders. labelSort by the label of each folders. Default: user_custom |
| sortOrder |
string
Default:
"ascend"
Enum:
"descend"
"ascend"
descendReturn folders in descending order. ascendReturn folders in ascending order. Default: ascend |
| fields |
string
The field list to retrieve as part of the folder resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| includeIds |
string
The comma separated ID list of folders to include to result. |
| excludeIds |
string
The comma separated ID list of folders to exclude from result. |
| top |
integer
Default:
0
Enum:
0
1
Default: 0 If set to 1, retrieves only top level folders. |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| X-MT-Authorization |
string
Input
|
{
-
"items":
[
-
{
-
"archiveLink":
"string",
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"class":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"customFields":
[
-
{
-
"basename":
"string",
-
"value":
"string"
}
],
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"parent":
"string",
-
"path":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
|
site_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"label,text,description"
The comma separated field name list to search. Default: label,text,description |
| limit |
integer
Default:
10
Maximum number of formatted_texts to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"created_on"
Default: created_on |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn formatted_texts in descending order. ascendReturn formatted_texts in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the formatted_text resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| includeIds |
string
The comma separated ID list of formatted_texts to include to result. |
| excludeIds |
string
The comma separated ID list of formatted_texts to exclude from result. |
| dateField |
string
Default:
"created_on"
Specifies the field name to be used as a date field for filtering. (new in v3) |
| dateFrom |
string
The start date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
| dateTo |
string
The end date to filtering. Specify in "YYYY-MM-DD" format. (new in v3) |
{
-
"items":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"description":
"string",
-
"id":
"string",
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"text":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}