Files

Catalog


POST Upload file

Request path:

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

Request content type:

application/x-www-form-urlencoded

Form content example:

PBToken=yourPBToken&SiteName=yourSiteName&FolderNames=yourFolderNames&RecursiveCreate=false 

Request form:

Name Required Type
PBToken Not required Text
SiteName Required Text
FolderNames Not required Text
RecursiveCreate Required Boolean

Possible Response:

{
  "SiteName": "an example string.",
  "FilePath": "an example string.",
  "InternetPath": "an example string.",
  "FileSize": 0,
  "Code": 0,
  "Message": "an example string."
}

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!"
}