Manually update the Sitemap interface

API call address

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

illustrate:{域名地址}Need to replace it with your domain address.{token}Need to be replaced with the token in the background content import interface function, such as/api/import/sitemap?token=xxx

Calling methods

POST form-data

Request parameters

GET parameters

Field name type Required illustrate
token string yes Token in the background content import interface function

POST parameters

Field name type Required illustrate
async string no Whether to process asynchronously, leave blank for synchronization, 1 = asynchronous

Return parameters

Field name type illustrate
code int Error code
msg string Error Cause Description
data object Results content

Request data example

GET parameters

token=4712a54b4c456bb29b7816d241db69a7

POST parameters

parameter value
async 1

Return to the data example

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

Error code

Error code illustrate
0 OK
-1 Error, the cause of the error is pointed out in msg
1001 Not logged in
1002 Unauthorized
200 API request OK