Restore
curl --request POST \
--url https://new.flashrdp.com/v1/services/{id}/backups/restore \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"point": "1796395740-1"
}
'import requests
url = "https://new.flashrdp.com/v1/services/{id}/backups/restore"
payload = { "point": "1796395740-1" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({point: '1796395740-1'})
};
fetch('https://new.flashrdp.com/v1/services/{id}/backups/restore', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://new.flashrdp.com/v1/services/{id}/backups/restore",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'point' => '1796395740-1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://new.flashrdp.com/v1/services/{id}/backups/restore"
payload := strings.NewReader("{\n \"point\": \"1796395740-1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://new.flashrdp.com/v1/services/{id}/backups/restore")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"point\": \"1796395740-1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://new.flashrdp.com/v1/services/{id}/backups/restore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"point\": \"1796395740-1\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"status": "requested"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "A valid Idempotency-Key header is required."
}
}{
"error": {
"code": "AUTHENTICATION_FAILED",
"message": "Invalid or expired API token."
}
}{
"error": {
"code": "ACTION_NOT_ALLOWED",
"message": "This API token needs the servers:power scope."
}
}{
"error": {
"code": "SERVICE_NOT_FOUND",
"message": "Service not found."
}
}{
"error": {
"code": "ACTION_IN_PROGRESS",
"message": "Another action is still running on this server."
}
}{
"error": {
"code": "IDEMPOTENCY_CONFLICT",
"message": "This Idempotency-Key was already used for a different request."
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API token (120 a minute)."
}
}{
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "This service is temporarily unavailable. Please try again."
}
}Restore
Replaces the server’s disk with a restore point. Anything written after it is lost.
Scope: servers:manage.
POST
/
v1
/
services
/
{id}
/
backups
/
restore
Restore
curl --request POST \
--url https://new.flashrdp.com/v1/services/{id}/backups/restore \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"point": "1796395740-1"
}
'import requests
url = "https://new.flashrdp.com/v1/services/{id}/backups/restore"
payload = { "point": "1796395740-1" }
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({point: '1796395740-1'})
};
fetch('https://new.flashrdp.com/v1/services/{id}/backups/restore', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://new.flashrdp.com/v1/services/{id}/backups/restore",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'point' => '1796395740-1'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://new.flashrdp.com/v1/services/{id}/backups/restore"
payload := strings.NewReader("{\n \"point\": \"1796395740-1\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://new.flashrdp.com/v1/services/{id}/backups/restore")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"point\": \"1796395740-1\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://new.flashrdp.com/v1/services/{id}/backups/restore")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"point\": \"1796395740-1\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"status": "requested"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "A valid Idempotency-Key header is required."
}
}{
"error": {
"code": "AUTHENTICATION_FAILED",
"message": "Invalid or expired API token."
}
}{
"error": {
"code": "ACTION_NOT_ALLOWED",
"message": "This API token needs the servers:power scope."
}
}{
"error": {
"code": "SERVICE_NOT_FOUND",
"message": "Service not found."
}
}{
"error": {
"code": "ACTION_IN_PROGRESS",
"message": "Another action is still running on this server."
}
}{
"error": {
"code": "IDEMPOTENCY_CONFLICT",
"message": "This Idempotency-Key was already used for a different request."
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests with this API token (120 a minute)."
}
}{
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "This service is temporarily unavailable. Please try again."
}
}Headers
A unique value per action (16–128 letters, digits, - or _), e.g. a UUID. Once the action was sent to the server's host, repeating the request with the same key returns the first answer instead of acting twice. A request refused before that (e.g. 409) is checked again on retry.
Pattern:
^[A-Za-z0-9_-]{16,128}$