POST/businesses/{business}/backups/requests
action is create or delete. A delete needs backup (the uuid).
Needs the backups:write scope.
Parameters
business integer, in path, required
- The business id, from GET /businesses.
Body
action string
- For example
create
reason string
- For example
Before the theme migration
curl -X POST "https://helstify.com/api/v1/businesses/60/backups/requests" \
-H "Authorization: Bearer $HELSTIFY_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"create","reason":"Before the theme migration"}'
const res = await fetch("https://helstify.com/api/v1/businesses/60/backups/requests", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HELSTIFY_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"action": "create",
"reason": "Before the theme migration"
}),
});
const data = await res.json();
import os, requests
res = requests.post(
"https://helstify.com/api/v1/businesses/60/backups/requests",
headers={"Authorization": f"Bearer {os.environ['HELSTIFY_KEY']}"},
json={
"action": "create",
"reason": "Before the theme migration"
},
)
print(res.json())
Response202
{
"ok": true,
"request": {
"id": 14,
"action": "create",
"status": "pending"
}
}