API call address
{域名地址}/api/import/archive?token={token}
illustrate:{域名地址}
Need to replace it with your domain address.{token}
Need to replace it with the Token from the background content import interface feature, such ashttps://en.anqicms.com/api/import/archive?token=xxx
Calling methods
POST form-data
Request parameters
GET Parameters
Field name |
type |
Required |
illustrate |
token |
string |
yes |
Token in the Back-end Content Import Interface Feature |
POST Parameters
Field name |
type |
Required |
illustrate |
id |
int |
no |
Document ID, automatically generated by default |
title |
string |
yes |
Document title |
content |
string |
yes |
Document content |
category_id |
int |
yes |
Document Category ID |
keywords |
string |
no |
Document keywords |
Description |
string |
no |
Document summary, within 250 characters |
url_token |
string |
no |
Custom URL Alias, only supports numbers and letters |
logo |
string |
no |
The thumbnail of the document can be an absolute address, such as:https://en.anqicms.com/logo.pngOr relative address, such as: /logo.png |
images[] |
string |
no |
Article group image, up to 9 images can be set, and this field can be repeated for multiple images. |
publish_time |
string |
no |
Format: 2006-01-02 15:04:05 The release time of the document can be the future time. If it is the future time, the document will not be officially released until the time has come. |
tag |
string |
no |
Document Tag, multiple tags separated by English commas, for example: aaa,bbb,ccc |
Other custom fields |
any |
no |
If you have passed other custom fields, and the field exists in the document model, it is also supported. |
draft |
boolean |
no |
Whether to save it in the draft, the supported values are: false |
cover |
int |
no |
Whether to overwrite when the same title, ID document exists, supported values are: 0 |
Return parameters
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object |
Results content |
data Parameters
Field name |
type |
illustrate |
id |
int |
Document ID |
url |
string |
Document URL |
Request data example
GET Parameters
token=4712a54b4c456bb29b7816d241db69a7
POST Parameters
Return to the data example
{
"code": 0,
"data": {
"id": 1,
"url": "https://en.anqicms.com/anqicms"
},
"msg": "发布成功"
}
Error code
Error code |
illustrate |
0 |
OK |
-1 |
Error, the error reason is indicated in msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API Request OK |