Servers
Upload File
Servers
Upload File
Upload File
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
Body
application/json
Example:
"abcd"
Example:
"text"
Example:
"file"
Response
200 - application/json
Upload File
Example:
"2024-06-26T20:09:18.403707Z"
Example:
"2024-06-26T20:09:18.403707Z"
Example:
"text/plain"
Example:
"example.txt"
Example:
"example.txt"
Example:
"example.txt"
Example:
4
Example:
"file"
Example:
true
Example:
"success"
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"
}