Backups
Create backup
Create a new backup
POST
/
backups
Create backup
curl --request POST \
--url https://api.fluxend.app/backups \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'X-Project: <x-project>' \
--data '
{
"projectUUID": "<string>"
}
'import requests
url = "https://api.fluxend.app/backups"
payload = { "projectUUID": "<string>" }
headers = {
"Authorization": "<authorization>",
"X-Project": "<x-project>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
'X-Project': '<x-project>',
'Content-Type': 'application/json'
},
body: JSON.stringify({projectUUID: '<string>'})
};
fetch('https://api.fluxend.app/backups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluxend.app/backups"
payload := strings.NewReader("{\n \"projectUUID\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("X-Project", "<x-project>")
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))
}require 'uri'
require 'net/http'
url = URI("https://api.fluxend.app/backups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["X-Project"] = '<x-project>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"projectUUID\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluxend.app/backups",
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([
'projectUUID' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"X-Project: <x-project>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"content": {
"completedAt": "<string>",
"error": "<string>",
"projectUuid": "<string>",
"startedAt": "<string>",
"status": "<string>",
"uuid": "<string>"
},
"errors": [
"<string>"
],
"metadata": "<unknown>",
"success": true
}{
"content": "null",
"errors": [
"Invalid input parameter"
],
"success": false
}{
"content": "null",
"errors": [
"Unauthorized access"
],
"success": false
}{
"content": "null",
"errors": [
"Validation failed"
],
"success": false
}{
"content": "null",
"errors": [
"Internal server error"
],
"success": false
}⌘I
Create backup
curl --request POST \
--url https://api.fluxend.app/backups \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--header 'X-Project: <x-project>' \
--data '
{
"projectUUID": "<string>"
}
'import requests
url = "https://api.fluxend.app/backups"
payload = { "projectUUID": "<string>" }
headers = {
"Authorization": "<authorization>",
"X-Project": "<x-project>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<authorization>',
'X-Project': '<x-project>',
'Content-Type': 'application/json'
},
body: JSON.stringify({projectUUID: '<string>'})
};
fetch('https://api.fluxend.app/backups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluxend.app/backups"
payload := strings.NewReader("{\n \"projectUUID\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("X-Project", "<x-project>")
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))
}require 'uri'
require 'net/http'
url = URI("https://api.fluxend.app/backups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["X-Project"] = '<x-project>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"projectUUID\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluxend.app/backups",
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([
'projectUUID' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json",
"X-Project: <x-project>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"content": {
"completedAt": "<string>",
"error": "<string>",
"projectUuid": "<string>",
"startedAt": "<string>",
"status": "<string>",
"uuid": "<string>"
},
"errors": [
"<string>"
],
"metadata": "<unknown>",
"success": true
}{
"content": "null",
"errors": [
"Invalid input parameter"
],
"success": false
}{
"content": "null",
"errors": [
"Unauthorized access"
],
"success": false
}{
"content": "null",
"errors": [
"Validation failed"
],
"success": false
}{
"content": "null",
"errors": [
"Internal server error"
],
"success": false
}