POST
/dashboard/service/{id}/vps/snapshots Create snapshot
Create a new snapshot of the VPS.
Parameters
| Name | Type | In | Description |
|---|---|---|---|
id* | integer | path | The service ID of the VPS. |
Request Body
namestringName for the snapshot
Response
200
403
404
successbooleandataobjectRequest
curl -X POST "https://api.royalehosting.net/dashboard/service/{id}/vps/snapshots" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID" \
-H "Content-Type: application/json" \
-d '{}'Request
const response = await fetch("https://api.royalehosting.net/dashboard/service/{id}/vps/snapshots", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "string"
}),
});
const data = await response.json();Request
import requests
response = requests.post(
"https://api.royalehosting.net/dashboard/service/{id}/vps/snapshots",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true,
"data": {}
}