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": 0,
-
"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":
{
-
"id":
0
},
-
"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":
0,
-
"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":
{
-
"id":
0
},
-
"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": 0,
-
"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":
{
-
"id":
0
},
-
"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": 0,
-
"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":
{
-
"id":
0
},
-
"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": 0,
-
"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":
{
-
"id":
0
},
-
"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": 0,
-
"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":
{
-
"id":
0
},
-
"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. |
| noTextFilter |
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":
0,
-
"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":
{
-
"id":
0
},
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"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. |
| noTextFilter |
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":
0,
-
"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":
{
-
"id":
0
},
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"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":
0,
-
"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":
{
-
"id":
0
},
-
"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":
0,
-
"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":
{
-
"id":
0
},
-
"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":
0,
-
"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": 0,
-
"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":
0,
-
"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": 0,
-
"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": 0,
-
"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": 0,
-
"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":
0,
-
"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. |
| noTextFilter |
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":
0,
-
"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":
{
-
"id":
0
},
-
"tags":
[
-
"string"
],
-
"type":
"string",
-
"updatable":
true,
-
"url":
"string"
}
],
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"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":
0,
-
"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":
0,
-
"updatable":
true
}
],
-
"totalResults": 0
}
Retrieve list of categories of the specified category set.
|
site_id
required
|
integer
|
|
category_set_id
required
|
integer
|
| maxDepth |
integer
The depth of retrieving parent categories. |
| includeCurrent |
integer
Default:
0
Enum:
0
1
|
| limit |
integer
Default:
10
Maximum number of categories to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| searchFields |
string
Default:
"label,basename"
The comma separated field name list to search. Default: label,basename |
| sortBy |
string
Default:
"user_custom"
Default: user_custom |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn categories in descending order. ascendReturn categories 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":
[
-
{
-
"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":
0,
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authentication required.
Create a new category in category set. This endpoint needs following permissions.
Post form data is following:
|
site_id
required
|
integer
|
|
category_set_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": 0,
-
"updatable":
true
}
Authentication required.
Save hierarchical categories order. This endpoint need folllowing permissions.
This method returns rearranged Categories collection.
Post form data is following:
|
site_id
required
|
integer
|
|
category_set_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":
0,
-
"updatable":
true
}
]
Authentication required.
Update an existing category. This endpoint need folllowing permissions.
|
site_id
required
|
integer
|
|
category_set_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": 0,
-
"updatable":
true
}
Retrieve a single category by its ID.
|
site_id
required
|
integer
|
|
category_set_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": 0,
-
"updatable":
true
}
Authentication required.
Update an existing category. This endpoint need folllowing permissions.
Post form data is following:
|
site_id
required
|
integer
|
|
category_set_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": 0,
-
"updatable":
true
}
Retrieve list of child categories of the specified category set.
|
site_id
required
|
integer
|
|
category_set_id
required
|
integer
|
|
category_id
required
|
integer
|
| maxDepth |
integer
The depth of retrieving parent categories. |
| includeCurrent |
integer
Default:
0
Enum:
0
1
|
| 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":
0,
-
"updatable":
true
}
],
-
"totalResults": 0
}
Retrieve list of parent categories of the specified category set.
|
site_id
required
|
integer
|
|
category_set_id
required
|
integer
|
|
category_id
required
|
integer
|
| maxDepth |
integer
The depth of retrieving parent categories. |
| includeCurrent |
integer
Default:
0
Enum:
0
1
|
| 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":
0,
-
"updatable":
true
}
],
-
"totalResults": 0
}
Retrieve list of sibling categories of the specified category set.
|
site_id
required
|
integer
|
|
category_set_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"
|
| 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 |
| 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":
0,
-
"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":
0,
-
"updatable":
true
}
],
-
"totalResults": 0
}
Retrieve list of category set in the specified site. Authentication required if you want retrieve private field in categorySet resource. Required permissions are as follows.
|
site_id
required
|
integer
|
| search |
string
Search query. |
| searchFields |
string
Default:
"name"
The comma separated field name list to search. Default: name |
| limit |
integer
Default:
25
Maximum number of category_sets to retrieve. Default: 25 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| sortBy |
string
Default:
"name"
Enum:
"id"
"name"
"created_on"
"modified_on"
"content_type_count"
The field name for sort. You can specify one of following values.
|
| sortOrder |
string
Default:
"ascend"
Enum:
"descend"
"ascend"
descendReturn category_sets in descending order. ascendReturn category_sets in ascending order. Default: ascend |
| fields |
string
The field list to retrieve as part of the category_set 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 category_sets to include to result. |
| excludeIds |
string
The comma separated ID list of category_sets 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":
[
-
{
-
"blog":
{
-
"id":
0
},
-
"categories":
[
-
{
-
"basename":
"string",
-
"id":
0,
-
"label":
"string",
-
"parent":
0
}
],
-
"contentTypeCount":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"id":
0,
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"name":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authentication Required
Create a new category set. This endpoint requires following permissions.
Post form data is following
|
site_id
required
|
integer
|
|
object
(category_set_updatable)
|
{
-
"blog":
{
-
"id":
0
},
-
"categories":
[
-
{
-
"basename":
"string",
-
"id":
0,
-
"label":
"string",
-
"parent":
0
}
],
-
"contentTypeCount":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"name":
"string",
-
"updatable":
true
}
Authentication required Delete a single category set. This endpoint requires following permissions.
|
site_id
required
|
integer
|
|
category_set_id
required
|
integer
|
{
-
"blog":
{
-
"id":
0
},
-
"categories":
[
-
{
-
"basename":
"string",
-
"id":
0,
-
"label":
"string",
-
"parent":
0
}
],
-
"contentTypeCount":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"name":
"string",
-
"updatable":
true
}
Fetch a single category set. Authentication required if you want retrieve private field in categorySet resource. Required permissions are as follows.
|
site_id
required
|
integer
|
|
category_set_id
required
|
integer
|
| fields |
string
The field list to retrieve as part of the category_set 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
},
-
"categories":
[
-
{
-
"basename":
"string",
-
"id":
0,
-
"label":
"string",
-
"parent":
0
}
],
-
"contentTypeCount":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"name":
"string",
-
"updatable":
true
}
Authentication required Update single category set. This endpoint requires following permissions.
Cannot update/insert/delete categories by this endpoint. If you want to manage categories in category set, please use Categories API.
|
site_id
required
|
integer
|
|
category_set_id
required
|
integer
|
|
object
(category_set_updatable)
|
{
-
"blog":
{
-
"id":
0
},
-
"categories":
[
-
{
-
"basename":
"string",
-
"id":
0,
-
"label":
"string",
-
"parent":
0
}
],
-
"contentTypeCount":
"string",
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"name":
"string",
-
"updatable":
true
}
Retrieve list of categories of the specified category set.
|
site_id
required
|
integer
|
|
category_set_id
required
|
integer
|
| maxDepth |
integer
The depth of retrieving parent categories. |
| includeCurrent |
integer
Default:
0
Enum:
0
1
|
| limit |
integer
Default:
10
Maximum number of categories to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| searchFields |
string
Default:
"label,basename"
The comma separated field name list to search. Default: label,basename |
| sortBy |
string
Default:
"user_custom"
Default: user_custom |
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn categories in descending order. ascendReturn categories 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":
[
-
{
-
"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":
0,
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authentication required.
Create a new category in category set. This endpoint needs following permissions.
Post form data is following:
|
site_id
required
|
integer
|
|
category_set_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": 0,
-
"updatable":
true
}
Authentication required.
Save hierarchical categories order. This endpoint need folllowing permissions.
This method returns rearranged Categories collection.
Post form data is following:
|
site_id
required
|
integer
|
|
category_set_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":
0,
-
"updatable":
true
}
]
Authentication required.
Update an existing category. This endpoint need folllowing permissions.
|
site_id
required
|
integer
|
|
category_set_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": 0,
-
"updatable":
true
}
Retrieve a single category by its ID.
|
site_id
required
|
integer
|
|
category_set_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": 0,
-
"updatable":
true
}
Authentication required.
Update an existing category. This endpoint need folllowing permissions.
Post form data is following:
|
site_id
required
|
integer
|
|
category_set_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": 0,
-
"updatable":
true
}
Retrieve list of child categories of the specified category set.
|
site_id
required
|
integer
|
|
category_set_id
required
|
integer
|
|
category_id
required
|
integer
|
| maxDepth |
integer
The depth of retrieving parent categories. |
| includeCurrent |
integer
Default:
0
Enum:
0
1
|
| 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":
0,
-
"updatable":
true
}
],
-
"totalResults": 0
}
Retrieve list of parent categories of the specified category set.
|
site_id
required
|
integer
|
|
category_set_id
required
|
integer
|
|
category_id
required
|
integer
|
| maxDepth |
integer
The depth of retrieving parent categories. |
| includeCurrent |
integer
Default:
0
Enum:
0
1
|
| 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":
0,
-
"updatable":
true
}
],
-
"totalResults": 0
}
Retrieve list of sibling categories of the specified category set.
|
site_id
required
|
integer
|
|
category_set_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"
|
| 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 |
| 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":
0,
-
"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"
}
Authentication Required Publish content data. This endpoint requires following permissions.
| blogId |
integer
Target site ID. Either blogID or blogIds must be specified. |
| blogIds |
string
The comma separated site ID list. Either blogID or blogIds must be specified. |
| ids |
string
The comma separated content data ID list. You should specifiy this parameter to next call if this endpoint returns ‘Rebuilding’ status and you want to continue to publish. |
| startTime |
string
The string of build start time. You should specifiy this parameter to next call if this endpoint returns ‘Rebuilding’ status and you want to continue to publish. |
{
-
"restIds":
"string",
-
"startTime":
"string",
-
"status":
"string"
}
Retrieve list of content data of specified content type in the specified site.
Authentication required if you want to retrieve unpublished content data. Required pemissions are as follows.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| limit |
integer
Default:
10
Maximum number of content_data to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| searchFields |
string
Default:
"identifier"
The comma separated field name list to search. Default: identifier |
| sortBy |
string
Default:
"id"
Enum:
"id"
"uniqueID"
"authored_on"
"created_on"
"modified_on"
The field name for sort. You can specify one of following values.
|
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn content_data in descending order. ascendReturn content_data in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the content_data 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 content_data to include to result. |
| excludeIds |
string
The comma separated ID list of content_data to exclude from result. |
| noTextFilter |
integer
Enum:
0
1
If you want to fetch the raw text, set to '1'. New in v2 |
| 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"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"data":
[
-
{
-
"data":
"string",
-
"id":
0,
-
"label":
"string",
-
"type":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"id":
0,
-
"label":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"permalink":
"string",
-
"status":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authentication Required Create a new content data. This endpoint requires following permissions.
Post form data is following
Known issues (these will be solved in future release)
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| saveRevision |
integer
Enum:
0
1
Save a revision or not |
|
object
(cd_updatable)
|
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"data":
[
-
{
-
"data":
"string",
-
"id":
0,
-
"label":
"string",
-
"type":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"label":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"permalink":
"string",
-
"status":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
Authentication required.
Make a preview by specified data. This endpoint requires following permissions.
Post form data is following
Known issues (these will be solved in future release)
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| raw |
integer
Default:
0
Enum:
0
1
If specify "1", will be returned preview contents. |
|
object
(cd)
Updatable fields are basename, data, date, status, unpublishedDate, label |
{
-
"preview":
"string",
-
"status":
"string"
}
Authentication required.
Delete a single content data. This endpoint requires folllowing permissions.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_data_id
required
|
integer
|
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"data":
[
-
{
-
"data":
"string",
-
"id":
0,
-
"label":
"string",
-
"type":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"label":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"permalink":
"string",
-
"status":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
Fetch single content data.
Authentication required if you want fetch unpublished content data. Required permissions are as follows.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_data_id
required
|
integer
|
| fields |
string
The field list to retrieve as part of the content_data resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| X-MT-Authorization |
string
Input
|
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"data":
[
-
{
-
"data":
"string",
-
"id":
0,
-
"label":
"string",
-
"type":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"label":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"permalink":
"string",
-
"status":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
Authentication Required Update a single content data. This endpoint requires folllowing permissions.
Post form data is following:
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_data_id
required
|
integer
|
| saveRevision |
integer
Enum:
0
1
Save a revision or not |
|
object
(cd_updatable)
|
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"data":
[
-
{
-
"data":
"string",
-
"id":
0,
-
"label":
"string",
-
"type":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"label":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"permalink":
"string",
-
"status":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
Authentication required.
Make a preview by ID. This endpoint requires following permissions.
Post form data is as follows
Known issues (these will be solved in future release)
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_data_id
required
|
integer
|
| raw |
integer
Default:
0
Enum:
0
1
If specify "1", will be returned preview contents. |
|
object
(cd)
Updatable fields are basename, data, date, status, unpublishedDate, label |
{
-
"preview":
"string",
-
"status":
"string"
}
Authentication required
Retrieve a list of Content Fields of the specified Content Type. This endpoint requires following permission.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| limit |
integer
Default:
10
Maximum number of content_fields to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| searchFields |
string
Default:
"label,description"
The comma separated field name list to search. Default: label,description |
| sortBy |
string
Enum:
"name"
"dataLabel"
"uniqueID"
"modified_on"
The field name for sort. You can specify one of following values.
|
| sortOrder |
string
Default:
"ascend"
Enum:
"descend"
"ascend"
descendReturn content_fields in descending order. ascendReturn content_fields in ascending order. Default: ascend |
| fields |
string
The field list to retrieve as part of the content_field 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 content_fields to include to result. |
| excludeIds |
string
The comma separated ID list of content_fields 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":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authentication required
Create a new Content Field. This endpoint requires following permission.
Post form data is as follows.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
object
(cf_updatable)
|
{
-
"blog":
{
-
"id":
0
},
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
Authentication required.
Rearranges content field order in specified content type. This endpoint need folllowing permissions.
This method returns rearranged ContentField collection.
Post form data is following:
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| content_fields |
string
Array of content fields resource that were rearranged. |
[
-
{
-
"blog":
{
-
"id":
0
},
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
]
Authentication required
Delete content field from specified content type. This endpoint requires following permission.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_field_id
required
|
integer
|
{
-
"blog":
{
-
"id":
0
},
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
Authentication required
Fetch single content field. This endpoint requires following permission.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_field_id
required
|
integer
|
| fields |
string
The field list to retrieve as part of the content_field resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
{
-
"blog":
{
-
"id":
0
},
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
Authentication required
Update content field. This endpoint requires following permission.
If you want to update label, description and required, should be use options field. (e.g, {“options”:{“label”:“foo”}})
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_field_id
required
|
integer
|
|
object
(cf_updatable)
|
{
-
"blog":
{
-
"id":
0
},
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
Authentication required
Retrieve a list of Content Types. This endpoint requires following permission.
|
site_id
required
|
integer
|
| limit |
integer
Default:
10
Maximum number of content_types to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| searchFields |
string
Default:
"name,description"
The comma separated field name list to search. Default: name,description |
| sortBy |
string
Enum:
"name"
"dataLabel"
"uniqueID"
"modified_on"
The field name for sort. You can specify one of following values.
|
| sortOrder |
string
Default:
"ascend"
Enum:
"descend"
"ascend"
descendReturn content_types in descending order. ascendReturn content_types in ascending order. Default: ascend |
| fields |
string
The field list to retrieve as part of the content_type 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 content_types to include to result. |
| excludeIds |
string
The comma separated ID list of content_types 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
},
-
"contentFields":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"type":
"string",
-
"uniqueID":
"string"
}
],
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"dataLabel":
"string",
-
"description":
"string",
-
"id":
0,
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"name":
"string",
-
"uniqueID":
"string",
-
"updatable":
true,
-
"userDisplayOption":
true
}
],
-
"totalResults": 0
}
Authentication required
Create a new Content Type. This endpoint requires following permission.
Post form data is as follows.
|
site_id
required
|
integer
|
|
object
(content_type_updatable)
|
{
-
"blog":
{
-
"id":
0
},
-
"contentFields":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"type":
"string",
-
"uniqueID":
"string"
}
],
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"dataLabel":
"string",
-
"description":
"string",
-
"id": 0,
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"name":
"string",
-
"uniqueID":
"string",
-
"updatable":
true,
-
"userDisplayOption":
true
}
Authentication required
Delete content type. This endpoint requires following permission.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
{
-
"blog":
{
-
"id":
0
},
-
"contentFields":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"type":
"string",
-
"uniqueID":
"string"
}
],
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"dataLabel":
"string",
-
"description":
"string",
-
"id": 0,
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"name":
"string",
-
"uniqueID":
"string",
-
"updatable":
true,
-
"userDisplayOption":
true
}
Authentication required
Fetch single content type. This endpoint requires following permission.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| fields |
string
The field list to retrieve as part of the content_type resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
{
-
"blog":
{
-
"id":
0
},
-
"contentFields":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"type":
"string",
-
"uniqueID":
"string"
}
],
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"dataLabel":
"string",
-
"description":
"string",
-
"id": 0,
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"name":
"string",
-
"uniqueID":
"string",
-
"updatable":
true,
-
"userDisplayOption":
true
}
Authentication required
Update content type. This endpoint requires following permission.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
object
(content_type_updatable)
|
{
-
"blog":
{
-
"id":
0
},
-
"contentFields":
[
-
{
-
"id":
0,
-
"label":
"string",
-
"type":
"string",
-
"uniqueID":
"string"
}
],
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"dataLabel":
"string",
-
"description":
"string",
-
"id": 0,
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"name":
"string",
-
"uniqueID":
"string",
-
"updatable":
true,
-
"userDisplayOption":
true
}
Retrieve list of content data of specified content type in the specified site.
Authentication required if you want to retrieve unpublished content data. Required pemissions are as follows.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| limit |
integer
Default:
10
Maximum number of content_data to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| filterKeys |
string
Default:
"status"
The comma separated field name list to filter. Default: status |
| searchFields |
string
Default:
"identifier"
The comma separated field name list to search. Default: identifier |
| sortBy |
string
Default:
"id"
Enum:
"id"
"uniqueID"
"authored_on"
"created_on"
"modified_on"
The field name for sort. You can specify one of following values.
|
| sortOrder |
string
Default:
"descend"
Enum:
"descend"
"ascend"
descendReturn content_data in descending order. ascendReturn content_data in ascending order. Default: descend |
| fields |
string
The field list to retrieve as part of the content_data 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 content_data to include to result. |
| excludeIds |
string
The comma separated ID list of content_data to exclude from result. |
| noTextFilter |
integer
Enum:
0
1
If you want to fetch the raw text, set to '1'. New in v2 |
| 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"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"data":
[
-
{
-
"data":
"string",
-
"id":
0,
-
"label":
"string",
-
"type":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"id":
0,
-
"label":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"permalink":
"string",
-
"status":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authentication Required Create a new content data. This endpoint requires following permissions.
Post form data is following
Known issues (these will be solved in future release)
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| saveRevision |
integer
Enum:
0
1
Save a revision or not |
|
object
(cd_updatable)
|
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"data":
[
-
{
-
"data":
"string",
-
"id":
0,
-
"label":
"string",
-
"type":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"label":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"permalink":
"string",
-
"status":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
Authentication required.
Make a preview by specified data. This endpoint requires following permissions.
Post form data is following
Known issues (these will be solved in future release)
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| raw |
integer
Default:
0
Enum:
0
1
If specify "1", will be returned preview contents. |
|
object
(cd)
Updatable fields are basename, data, date, status, unpublishedDate, label |
{
-
"preview":
"string",
-
"status":
"string"
}
Authentication required.
Delete a single content data. This endpoint requires folllowing permissions.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_data_id
required
|
integer
|
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"data":
[
-
{
-
"data":
"string",
-
"id":
0,
-
"label":
"string",
-
"type":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"label":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"permalink":
"string",
-
"status":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
Fetch single content data.
Authentication required if you want fetch unpublished content data. Required permissions are as follows.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_data_id
required
|
integer
|
| fields |
string
The field list to retrieve as part of the content_data resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
| X-MT-Authorization |
string
Input
|
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"data":
[
-
{
-
"data":
"string",
-
"id":
0,
-
"label":
"string",
-
"type":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"label":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"permalink":
"string",
-
"status":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
Authentication Required Update a single content data. This endpoint requires folllowing permissions.
Post form data is following:
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_data_id
required
|
integer
|
| saveRevision |
integer
Enum:
0
1
Save a revision or not |
|
object
(cd_updatable)
|
{
-
"author":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"basename":
"string",
-
"blog":
{
-
"id":
0
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"data":
[
-
{
-
"data":
"string",
-
"id":
0,
-
"label":
"string",
-
"type":
"string"
}
],
-
"date":
"2019-08-24T14:15:22Z",
-
"id": 0,
-
"label":
"string",
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"permalink":
"string",
-
"status":
"string",
-
"unpublishedDate":
"2019-08-24T14:15:22Z",
-
"updatable":
true
}
Authentication required.
Make a preview by ID. This endpoint requires following permissions.
Post form data is as follows
Known issues (these will be solved in future release)
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_data_id
required
|
integer
|
| raw |
integer
Default:
0
Enum:
0
1
If specify "1", will be returned preview contents. |
|
object
(cd)
Updatable fields are basename, data, date, status, unpublishedDate, label |
{
-
"preview":
"string",
-
"status":
"string"
}
Authentication required
Retrieve a list of Content Fields of the specified Content Type. This endpoint requires following permission.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| limit |
integer
Default:
10
Maximum number of content_fields to retrieve. Default: 10 |
| offset |
integer
Default:
0
0-indexed offset. Default: 0 |
| searchFields |
string
Default:
"label,description"
The comma separated field name list to search. Default: label,description |
| sortBy |
string
Enum:
"name"
"dataLabel"
"uniqueID"
"modified_on"
The field name for sort. You can specify one of following values.
|
| sortOrder |
string
Default:
"ascend"
Enum:
"descend"
"ascend"
descendReturn content_fields in descending order. ascendReturn content_fields in ascending order. Default: ascend |
| fields |
string
The field list to retrieve as part of the content_field 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 content_fields to include to result. |
| excludeIds |
string
The comma separated ID list of content_fields 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":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
],
-
"totalResults": 0
}
Authentication required
Create a new Content Field. This endpoint requires following permission.
Post form data is as follows.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
object
(cf_updatable)
|
{
-
"blog":
{
-
"id":
0
},
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
Authentication required.
Rearranges content field order in specified content type. This endpoint need folllowing permissions.
This method returns rearranged ContentField collection.
Post form data is following:
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
| content_fields |
string
Array of content fields resource that were rearranged. |
[
-
{
-
"blog":
{
-
"id":
0
},
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"description":
"string",
-
"id":
0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
]
Authentication required
Delete content field from specified content type. This endpoint requires following permission.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_field_id
required
|
integer
|
{
-
"blog":
{
-
"id":
0
},
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
Authentication required
Fetch single content field. This endpoint requires following permission.
|
site_id
required
|
integer
|
|
content_type_id
required
|
integer
|
|
content_field_id
required
|
integer
|
| fields |
string
The field list to retrieve as part of the content_field resource. That list should be separated by comma. If this parameter is not specified, All fields will be returned. |
{
-
"blog":
{
-
"id":
0
},
-
"createdBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"createdDate":
"2019-08-24T14:15:22Z",
-
"description":
"string",
-
"id": 0,
-
"label":
"string",
-
"modifiedBy":
{
-
"displayName":
"string",
-
"id":
0,
-
"userpicUrl":
"string"
},
-
"modifiedDate":
"2019-08-24T14:15:22Z",
-
"options":
{
-
"description":
"string",
-
"display":
"string",
-
"label":
"string",
-
"required":
"string"
},
-
"type":
"string",
-
"uniqueID":
"string",
-
"updatable":
true
}
Authentication required
Update content field. This endpoint requires following permission.
If you want to update label, description and required, should be use options field. (e.g, {“options”:{“label”:“foo”}})