cURL
curl --request PUT \ --url https://dashboard.gratian.pro/api/client/servers/{server}/files/rename \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "root": "<string>", "files": [ { "to": "<string>", "from": "<string>" } ] }'
[ "<string>" ]
Renames a file on the remote machine.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The server UUID
No content
The response is of type string[].
string[]