Manual Update Sitemap Interface

API Call Address

{域名地址}/api/import/sitemap?token={token}

Description:{域名地址}Replace it with your domain address,{token}Replace it with the Token in the background content import interface function,https://en.anqicms.com/api/import/sitemap?token=xxx

Calling method

POST form-data

Request parameters

GET Parameters

Field name Type Required Description
token string Yes Token in the background content import interface feature

POST Parameters

Field name Type Required Description
async string No Whether to handle asynchronously, leave blank for synchronous, 1 = asynchronous

Return parameters

Field name Type Description
code int error code
msg string error reason description
data object result content

request data example

GET Parameters

token=4712a54b4c456bb29b7816d241db69a7

POST Parameters

Parameter Value
async 1

Return Data Example

{
  "code": 0,
  "msg": "已提交后台处理,请稍后查看结果"
}

Error Code

error code Description
0 OK
-1 Error, the reason is indicated in the msg
1001 Not logged in
1002 Unauthorized
200 API request OK