Apply a brand to this video (a new version)
curl --request PUT \
--url https://pria.praxislxp.com/api/user/presentations/{id}/brand \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"input": {
"name": "Redline Labs",
"primary": "#D32F2F",
"secondary": "#1565C0"
},
"revision": 4,
"remember": false
}
'import requests
url = "https://pria.praxislxp.com/api/user/presentations/{id}/brand"
payload = {
"input": {
"name": "Redline Labs",
"primary": "#D32F2F",
"secondary": "#1565C0"
},
"revision": 4,
"remember": False
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: {name: 'Redline Labs', primary: '#D32F2F', secondary: '#1565C0'},
revision: 4,
remember: false
})
};
fetch('https://pria.praxislxp.com/api/user/presentations/{id}/brand', 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://pria.praxislxp.com/api/user/presentations/{id}/brand",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'input' => [
'name' => 'Redline Labs',
'primary' => '#D32F2F',
'secondary' => '#1565C0'
],
'revision' => 4,
'remember' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-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://pria.praxislxp.com/api/user/presentations/{id}/brand"
payload := strings.NewReader("{\n \"input\": {\n \"name\": \"Redline Labs\",\n \"primary\": \"#D32F2F\",\n \"secondary\": \"#1565C0\"\n },\n \"revision\": 4,\n \"remember\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-access-token", "<api-key>")
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.put("https://pria.praxislxp.com/api/user/presentations/{id}/brand")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"input\": {\n \"name\": \"Redline Labs\",\n \"primary\": \"#D32F2F\",\n \"secondary\": \"#1565C0\"\n },\n \"revision\": 4,\n \"remember\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/presentations/{id}/brand")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": {\n \"name\": \"Redline Labs\",\n \"primary\": \"#D32F2F\",\n \"secondary\": \"#1565C0\"\n },\n \"revision\": 4,\n \"remember\": false\n}"
response = http.request(request)
puts response.read_bodyPresentations
Apply a brand to this video (a new version)
`input` is one of { name, primary, secondary?, neutral?, logo?: "asset:<id>" | null } (colours #RRGGBB), { saved: "<slug>" }, { none: true } (neutral colours) or { praxis: true } (Praxis colours: an explicit, audited choice). The server works out every colour of every look; nothing else is taken from the request. `revision` must be the latest version's number (else 409 STALE_HEAD { headRevision }: reload and apply again). `remember: true` (only for colours) also saves the brand as it was stored for next time — `remembered { slug }`, or `rememberRefused` (e.g. MEMORY_OFF) while the brand itself is applied. Owner only; 30 changes per minute; the body is at most 2 KB.
PUT
/
api
/
user
/
presentations
/
{id}
/
brand
Apply a brand to this video (a new version)
curl --request PUT \
--url https://pria.praxislxp.com/api/user/presentations/{id}/brand \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"input": {
"name": "Redline Labs",
"primary": "#D32F2F",
"secondary": "#1565C0"
},
"revision": 4,
"remember": false
}
'import requests
url = "https://pria.praxislxp.com/api/user/presentations/{id}/brand"
payload = {
"input": {
"name": "Redline Labs",
"primary": "#D32F2F",
"secondary": "#1565C0"
},
"revision": 4,
"remember": False
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: {name: 'Redline Labs', primary: '#D32F2F', secondary: '#1565C0'},
revision: 4,
remember: false
})
};
fetch('https://pria.praxislxp.com/api/user/presentations/{id}/brand', 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://pria.praxislxp.com/api/user/presentations/{id}/brand",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'input' => [
'name' => 'Redline Labs',
'primary' => '#D32F2F',
'secondary' => '#1565C0'
],
'revision' => 4,
'remember' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-access-token: <api-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://pria.praxislxp.com/api/user/presentations/{id}/brand"
payload := strings.NewReader("{\n \"input\": {\n \"name\": \"Redline Labs\",\n \"primary\": \"#D32F2F\",\n \"secondary\": \"#1565C0\"\n },\n \"revision\": 4,\n \"remember\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-access-token", "<api-key>")
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.put("https://pria.praxislxp.com/api/user/presentations/{id}/brand")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"input\": {\n \"name\": \"Redline Labs\",\n \"primary\": \"#D32F2F\",\n \"secondary\": \"#1565C0\"\n },\n \"revision\": 4,\n \"remember\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/presentations/{id}/brand")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": {\n \"name\": \"Redline Labs\",\n \"primary\": \"#D32F2F\",\n \"secondary\": \"#1565C0\"\n },\n \"revision\": 4,\n \"remember\": false\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
JWT token passed in x-access-token header
Path Parameters
Body
application/json
Response
{ success, presentationId, revision, version, contentValid, report, remembered?, rememberRefused? }
Was this page helpful?