Storage

Catalog


GET Init icon upload

Request path:

https://staging.server.kahla.app/Storage/InitIconUpload

Request example:

https://staging.server.kahla.app/Storage/InitIconUpload

Try

Possible Response:

{
  "value": "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!"
}

GET Init file access

Request path:

https://staging.server.kahla.app/Storage/InitFileAccess

Request example:

https://staging.server.kahla.app/Storage/InitFileAccess?conversationId=0&upload=false&download=false

Try

Request arguments:

Name Required Type
conversationId Required Number
upload Required Boolean
download Required Boolean

Possible Response:

{
  "uploadAddress": "an example string.",
  "value": "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 Forward media

Request path:

https://staging.server.kahla.app/Storage/ForwardMedia

Request example:

https://staging.server.kahla.app/Storage/ForwardMedia?SourceConversationId=0&SourceFilePath=yourSourceFilePath&TargetConversationId=0

Request content type:

application/x-www-form-urlencoded

Form content example:

SourceConversationId=0&SourceFilePath=yourSourceFilePath&TargetConversationId=0 

Request form:

Name Required Type
SourceConversationId Required Number
SourceFilePath Required Text
TargetConversationId Required Number

Possible Response:

{
  "siteName": "an example string.",
  "filePath": "an example string.",
  "internetPath": "an example string.",
  "downloadPath": "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!"
}