Files

Rename or move entries

PUT
/game-servers/{slice}/files/rename

Renaming and moving are the same operation: to is a path, so a to in a different directory moves the entry there.

Batched because a move of a whole directory of configs one request at a time is one round trip to the node per file, and leaves the move half applied if one of them fails partway.

Authorization

orgApiKey game-servers.files.manage
AuthorizationBearer <token>

An organisation API key, prefixed tbk_. Create one under Organisation to API keys; the plaintext is shown once.

The scopes listed on each operation are the abilities the key must carry. They are not OAuth scopes and are not negotiated per request.

In: header

Scope: game-servers.files.manage

Path Parameters

slice*string

The server's UUID, as returned by the list endpoint.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/game-servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/files/rename" \  -H "Content-Type: application/json" \  -d '{    "files": [      {        "from": "string",        "to": "string"      }    ]  }'
{  "ok": true,  "message": "string"}