Skip to content

Write a stored file

POST
/api/admin/file/{type}/{id}
curl --request POST \
--url https://example.com/api/admin/file/example/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/plain' \
--data example

Writes raw contents to a stored configuration file by type and ID

type
required

File type

string
id
required

File ID

string
Media typetext/plain

Raw file contents

string

File written successfully

Media typetext/plain
string

Missing config id and type