APIFile management

Write file contents

Writes or overwrites the contents of a file on the server

Writes or overwrites the contents of a file on the server

POST
/api/client/servers/{server}/files/write

Authorization

bearerAuth
AuthorizationBearer <token>

Enter your API token in the format: Bearer {token}

In: header

Path Parameters

server*string

Server UUID

Query Parameters

file*string

Path to the file to write

Request Body

text/plain

File content to write

TypeScript Definitions

Use the request body type in TypeScript.

body*string

Response Body

curl -X POST "https://example.com/api/client/servers/string/files/write?file=string" \  -H "Content-Type: text/plain" \  -d 'string'
Empty
Empty
Empty
Empty
Empty