Sites

Catalog


POST Create new site

Request path:

https://probe.aiursoft.com/Sites/CreateNewSite

Request example:

https://probe.aiursoft.com/Sites/CreateNewSite?AccessToken=yourAccessToken&NewSiteName=yourNewSiteName&OpenToUpload=false&OpenToDownload=false

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&NewSiteName=yourNewSiteName&OpenToUpload=false&OpenToDownload=false 

Request form:

Name Required Type
AccessToken Required Text
NewSiteName Required Text
OpenToUpload Required Boolean
OpenToDownload Required Boolean

Possible Response:

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

Possible Response:

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

GET View my sites

Request path:

https://probe.aiursoft.com/Sites/ViewMySites

Request example:

https://probe.aiursoft.com/Sites/ViewMySites?AccessToken=yourAccessToken

Try

Request arguments:

Name Required Type
AccessToken Required Text

Possible Response:

{
  "appId": "an example string.",
  "sites": [
    {
      "appId": "an example string.",
      "siteName": "an example string.",
      "openToUpload": true,
      "openToDownload": true,
      "creationTime": "2020-09-26T00:31:23.7224977Z"
    }
  ],
  "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!"
}

GET View site detail

Request path:

https://probe.aiursoft.com/Sites/ViewSiteDetail

Request example:

https://probe.aiursoft.com/Sites/ViewSiteDetail?SiteName=yourSiteName&AccessToken=yourAccessToken

Try

Request arguments:

Name Required Type
SiteName Not required Text
AccessToken Not required Text

Possible Response:

{
  "appId": "an example string.",
  "site": {
    "appId": "an example string.",
    "siteName": "an example string.",
    "openToUpload": true,
    "openToDownload": true,
    "creationTime": "2020-09-26T00:31:23.7228778Z"
  },
  "size": 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 Update site info

Request path:

https://probe.aiursoft.com/Sites/UpdateSiteInfo

Request example:

https://probe.aiursoft.com/Sites/UpdateSiteInfo?AccessToken=yourAccessToken&OldSiteName=yourOldSiteName&NewSiteName=yourNewSiteName&OpenToUpload=false&OpenToDownload=false

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&OldSiteName=yourOldSiteName&NewSiteName=yourNewSiteName&OpenToUpload=false&OpenToDownload=false 

Request form:

Name Required Type
AccessToken Required Text
OldSiteName Required Text
NewSiteName Required Text
OpenToUpload Required Boolean
OpenToDownload 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 site

Request path:

https://probe.aiursoft.com/Sites/DeleteSite

Request example:

https://probe.aiursoft.com/Sites/DeleteSite?AccessToken=yourAccessToken&SiteName=yourSiteName

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&SiteName=yourSiteName 

Request form:

Name Required Type
AccessToken Required Text
SiteName 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 Delete app

Request path:

https://probe.aiursoft.com/Sites/DeleteApp

Request example:

https://probe.aiursoft.com/Sites/DeleteApp?AccessToken=yourAccessToken&AppId=yourAppId

Request content type:

application/x-www-form-urlencoded

Form content example:

AccessToken=yourAccessToken&AppId=yourAppId 

Request form:

Name Required Type
AccessToken Required Text
AppId Required Text

Possible Response:

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

Possible Response:

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