Skip to main content
POST
/
servers
/
{id}
/
files
/
rename
Rename or move files
curl --request POST \
  --url https://your-domain.com/api/client/v1/servers/{id}/files/rename \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "root": "/",
  "files": [
    {
      "from": "<string>",
      "to": "<string>"
    }
  ]
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Server UUID.

Body

application/json
root
string
default:/
required
files
object[]
required
Required array length: 1 - 100 elements

Response

Renamed

ok
boolean