# Function Description

There are two types of saving historical version:Manal saving and Automatic saving.

# Request

# request example

GET /project/history/list HTTPS
Host: <host>
Content-Type: application/json
Authorization: <AuthString>

# Request Headers

Name Description Type Mandatory
Authorization User token information string true

# Request Parameters

Field Type Explain Mandatory
projectId number project id true
displayName string display name false

# Request Body

none

# Response

# Response Header

No special response header

# Response Body

Successful Response Body:

{
  "code": 0,
  "enMsg": "success",
  "msg": "成功",
  "data": {
    "manual": [
      {
        "id": 25,
        "userId": 1,
        "projectId": 16385,
        "url": "https://alieasset.meishesdk.com/test/bs_project/history/381b59fecf8843afa4cee889a8074d63/0/1.xml",
        "displayName": null,
        "versionNumber": 1,
        "createdAt": "2022-03-07 06:10:03",
        "status": 1,
        "modifyAt": "2022-03-07 06:10:03",
        "type": 0
      }
    ],
    "auto": [
      {
        "id": 26,
        "userId": 1,
        "projectId": 16385,
        "url": "https://alieasset.meishesdk.com/test/bs_project/history/381b59fecf8843afa4cee889a8074d63/1/1.xml",
        "displayName": null,
        "versionNumber": 1,
        "createdAt": "2022-03-07 06:15:05",
        "status": 1,
        "modifyAt": "2022-03-07 06:15:05",
        "type": 1
      }
    ]
  }
}
Field type explain Mandatory
id number self-inreasing id true
userId number user id true
projectId number project id true
url string project xml file url true
type number saving type 0-Automatic saving
1-Manual saving true
displayName string display information true
versionNumber number number of version true
createdAt string create time true
status number status 1-normal 2-deleted true
modifyAt string time of modifying true

Failed Response Body:

{
  "code": -1,
  "enMsg": "failed",
  "msg": "失败"
}