Files

Catalog


POST Upload file

Request path:

https://probe.aiursoft.com/Files/UploadFile/{SiteName}/{**FolderNames}

Request example:

https://probe.aiursoft.com/files/uploadfile/{yoursitename}/{yourFolderNames}?PBToken=yourPBToken&RecursiveCreate=false

Request content type:

application/x-www-form-urlencoded

Form content example:

PBToken=yourPBToken&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/{SiteName}/{**FolderNames}

Request example:

https://probe.aiursoft.com/files/deletefile/{yoursitename}/{yourFolderNames}?AccessToken=yourAccessToken

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken 

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