Folders

Catalog


GET View content

Request path:

https://probe.aiursoft.com/Folders/ViewContentTry

Request example:

https://probe.aiursoft.com/Folders/ViewContent?AccessToken=yourAccessToken&SiteName=yourSiteName&FolderNames=yourFolderNames

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.",
        "UploadTime": "2019-09-19T03:51:22.024707Z"
      }
    ],
    "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

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&SiteName=yourSiteName&FolderNames=yourFolderNames&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

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