user APIs
Upload files
Upload one or more files for the logged in user
post/user/files
Request
- Base URL/api/v2 (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- HTTP bearer
- or API key in header X-SFTPGO-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
pathstring
Parent directory for the uploaded files. It must be URL encoded, for example the path "my dir/àdir" must be sent as "my%20dir%2F%C3%A0dir". If empty or missing the root path is assumed. If a file with the same name already exists, it will be overwritten
mkdir_parentsboolean
Create parent directories if they do not exist?
Request body multipart/form-data
Response
successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.