[HTTP POST] ~/files?subFolder={subFolder}

Description: Upload a file to the specified subFolder. The file must be attached as a Form-data value

Request Information

URI Parameters

NameDescriptionTypeAdditional information
subFolder

The relative path to the file in the FTP folder

string

Required

Body Parameters

None

Response Information

Description

Successful Response - OK (200):

Response Content : FileResult

NameDescriptionTypeAdditional information
FileNames

Collection of string

None.


Response Codes:

  • 200 - OK
    • The File was uploaded successfully.
  • 401 - Unauthorized
    • Request has been denied as it lacks valid Authentication credentials.
  • 403 - Forbidden
    • The user is missing required FileImport permission.
  • 500 - InternalServerError
    • An error occurred while processing this request.

Formats

application/json, text/json

Sample:
{
  "FileNames": [
    "sample string 1",
    "sample string 2"
  ]
}

application/csp-report

Sample:
{"FileNames":["sample string 1","sample string 2"]}

application/xml, text/xml

Sample:
<FileResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/W50Common.Global">
  <FileNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </FileNames>
</FileResult>