Folders

Catalog


GET View content

Request path:

https://probe.aiursoft.com/Folders/ViewContent/{SiteName}/{**FolderNames}

Request example:

https://probe.aiursoft.com/folders/viewcontent/{yoursitename}/{yourFolderNames}?AccessToken=yourAccessToken

Try

Request arguments:

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

Possible Response:

{
  "value": {
    "subFolders": null,
    "files": [
      {
        "contextId": 0,
        "fileName": "an example string.",
        "fileSize": 0,
        "uploadTime": "2020-11-28T03:24:45.1473999Z"
      }
    ],
    "folderName": "an example string."
  },
  "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 Create new folder

Request path:

https://probe.aiursoft.com/Folders/CreateNewFolder/{SiteName}/{**FolderNames}

Request example:

https://probe.aiursoft.com/folders/createnewfolder/{yoursitename}/{yourFolderNames}?AccessToken=yourAccessToken&NewFolderName=yourNewFolderName&RecursiveCreate=false

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&NewFolderName=yourNewFolderName&RecursiveCreate=false 

Request form:

Name Required Type
AccessToken Required Text
SiteName Required Text
FolderNames Not required Text
NewFolderName Required Text
RecursiveCreate Required Boolean

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}

POST Delete folder

Request path:

https://probe.aiursoft.com/Folders/DeleteFolder/{SiteName}/{**FolderNames}

Request example:

https://probe.aiursoft.com/folders/deletefolder/{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 Not required Text

Possible Response:

{
  "code": -1,
  "message": "Some error."
}

Possible Response:

{
  "items": [
    "Some item is invalid!"
  ],
  "code": -10,
  "message": "Your input contains several errors!"
}