POST/services/{service}/folder
Create a folder.
Needs the files:write scope.
Parameters
service integer, in path, required
- The hosting service id, from GET /services.
Body
path string
- For example
/plugins/config
curl -X POST "https://helstify.com/api/v1/services/311/folder" \
-H "Authorization: Bearer $HELSTIFY_KEY" \
-H "Content-Type: application/json" \
-d '{"path":"/plugins/config"}'
const res = await fetch("https://helstify.com/api/v1/services/311/folder", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HELSTIFY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"path": "/plugins/config"
}),
});
const data = await res.json();
import os, requests
res = requests.post(
"https://helstify.com/api/v1/services/311/folder",
headers={"Authorization": f"Bearer {os.environ['HELSTIFY_KEY']}"},
json={
"path": "/plugins/config"
},
)
print(res.json())
Response200
{
"ok": true,
"service": "Minecraft · Paper",
"created": "/plugins/config"
}
POST/services/{service}/rename
Rename a file or folder.
Needs the files:write scope.
Parameters
service integer, in path, required
- The hosting service id, from GET /services.
Body
from string
- For example
/world
to string
- For example
/world-old
curl -X POST "https://helstify.com/api/v1/services/311/rename" \
-H "Authorization: Bearer $HELSTIFY_KEY" \
-H "Content-Type: application/json" \
-d '{"from":"/world","to":"/world-old"}'
const res = await fetch("https://helstify.com/api/v1/services/311/rename", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HELSTIFY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"from": "/world",
"to": "/world-old"
}),
});
const data = await res.json();
import os, requests
res = requests.post(
"https://helstify.com/api/v1/services/311/rename",
headers={"Authorization": f"Bearer {os.environ['HELSTIFY_KEY']}"},
json={
"from": "/world",
"to": "/world-old"
},
)
print(res.json())
Response200
{
"ok": true,
"service": "Minecraft · Paper",
"from": "/world",
"to": "/world-old"
}
POST/services/{service}/console
Not a shell.
Needs the commands:run scope.
Parameters
service integer, in path, required
- The hosting service id, from GET /services.
Body
command string
- For example
whitelist add Steve
curl -X POST "https://helstify.com/api/v1/services/311/console" \
-H "Authorization: Bearer $HELSTIFY_KEY" \
-H "Content-Type: application/json" \
-d '{"command":"whitelist add Steve"}'
const res = await fetch("https://helstify.com/api/v1/services/311/console", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HELSTIFY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"command": "whitelist add Steve"
}),
});
const data = await res.json();
import os, requests
res = requests.post(
"https://helstify.com/api/v1/services/311/console",
headers={"Authorization": f"Bearer {os.environ['HELSTIFY_KEY']}"},
json={
"command": "whitelist add Steve"
},
)
print(res.json())
Response200
{
"ok": true,
"service": "Minecraft · Paper",
"sent": "whitelist add Steve"
}
POST/services/{service}/power
start, stop, restart or kill.
Needs the power scope.
Parameters
service integer, in path, required
- The hosting service id, from GET /services.
Body
signal string
- For example
start
curl -X POST "https://helstify.com/api/v1/services/311/power" \
-H "Authorization: Bearer $HELSTIFY_KEY" \
-H "Content-Type: application/json" \
-d '{"signal":"start"}'
const res = await fetch("https://helstify.com/api/v1/services/311/power", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HELSTIFY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"signal": "start"
}),
});
const data = await res.json();
import os, requests
res = requests.post(
"https://helstify.com/api/v1/services/311/power",
headers={"Authorization": f"Bearer {os.environ['HELSTIFY_KEY']}"},
json={
"signal": "start"
},
)
print(res.json())
Response200
{
"ok": true,
"service": "Minecraft · Paper",
"signal": "start"
}