Files

Catalog


POST Upload file

Request path:

https://probe.aiursoft.com/Files/UploadFile

Request content type:

multipart/form-data

Form content example:

AccessToken=yourAccessToken&SiteName=yourSiteName&FolderNames=yourFolderNames 

Request form:

Name Required Type
AccessToken Required Text
SiteName Required Text
FolderNames Not required Text
File Required File

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

POST Delete file

Request path:

https://probe.aiursoft.com/Files/DeleteFile

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&SiteName=yourSiteName&FolderNames=yourFolderNames 

Request form:

Name Required Type
AccessToken Required Text
SiteName Required Text
FolderNames Required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}

POST Move file

Request path:

https://probe.aiursoft.com/Files/MoveFile

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&SiteName=yourSiteName&FolderNames=yourFolderNames&NewFolderNames=yourNewFolderNames 

Request form:

Name Required Type
AccessToken Required Text
SiteName Required Text
FolderNames Required Text
NewFolderNames Required Text

Possible Response:

{
  "Code": -1,
  "Message": "Some error."
}

Possible Response:

{
  "Items": [
    "Some item is invalid!"
  ],
  "Code": -10,
  "Message": "Your input contains several errors!"
}