PUT
/
api
/
servers
/
{server_name}
/
files
/
{path}
curl --request PUT \
  --url https://dashboard.amdatascience.com/api/servers/{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
header
required

Path Parameters

server_name
string
required
path
string
required

Body

application/json
content
string
Example:

"abcd"

format
string
Example:

"text"

type
string
Example:

"file"

Response

200 - application/json
Upload File
content
object
status
string
Example:

"success"