Upload a file to a game server

The path is counted from the root node as seen in the file manager in the control panel,i.e. to write csgo/cfg/server.cfg the path would be cfg/server.cfg, if the path ends with / a directory will be created and the file parameter will be ignored.

There is a upload limit of 100MB on dathost.net, use FTP to upload bigger files.

Path Params
string
required
string
required
Body Params
file

The file to be uploaded as a multipart/form-data body (Python example), if not provided an empty file/directory will be created

Responses
200

Success

400

Path is a directory

404

A server with this id was not found

507

Your disk quota of 30GB per server (excluding base installation) has been exceeded

Language
Response
Click Try It! to start a request and see the response here!