PUT
/
api
/
server
/
{server_name}
/
files
/
{path}
curl --request PUT \
  --url https://dashboard.amdatascience.com/api/server/{server_name}/files/{path} \
  --header 'Content-Type: application/json' \
  --header 'apiKey: <api-key>' \
  --data '{
  "content": "abcd",
  "format": "text",
  "type": "file"
}'
{
  "content": {
    "content": null,
    "created": "2024-06-26T20:09:18.403707Z",
    "format": null,
    "last_modified": "2024-06-26T20:09:18.403707Z",
    "mimetype": "text/plain",
    "name": "example.txt",
    "path": "example.txt",
    "serverPath": "example.txt",
    "size": 4,
    "type": "file",
    "writable": true
  },
  "status": "success"
}

Authorizations

apiKey
string
headerrequired

Path Parameters

server_name
string
required
path
string
required

Body

application/json
content
string
format
string
type
string

Response

200 - application/json
content
object
status
string