Change a share link — audience, version, expiry, label — or turn it off
curl --request PATCH \
--url https://pria.praxislxp.com/api/user/presentations/{id}/shares/{shareId} \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"revision": 2,
"expiresAt": "2023-11-07T05:31:56Z",
"label": "<string>",
"off": true
}
'import requests
url = "https://pria.praxislxp.com/api/user/presentations/{id}/shares/{shareId}"
payload = {
"revision": 2,
"expiresAt": "2023-11-07T05:31:56Z",
"label": "<string>",
"off": True
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({revision: 2, expiresAt: '2023-11-07T05:31:56Z', label: '<string>', off: true})
};
fetch('https://pria.praxislxp.com/api/user/presentations/{id}/shares/{shareId}', 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}/shares/{shareId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'revision' => 2,
'expiresAt' => '2023-11-07T05:31:56Z',
'label' => '<string>',
'off' => true
]),
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}/shares/{shareId}"
payload := strings.NewReader("{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\",\n \"off\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://pria.praxislxp.com/api/user/presentations/{id}/shares/{shareId}")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\",\n \"off\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/presentations/{id}/shares/{shareId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\",\n \"off\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"share": {
"shareId": "<string>",
"url": "https://pria.praxis-ai.com/share#3q2-7wAbCdEfGhIjKlMnOpQrStUvWxYz0123456789_-A",
"path": "/share#3q2-7wAbCdEfGhIjKlMnOpQrStUvWxYz0123456789_-A",
"label": "Acme — Bob",
"audience": "public",
"revision": {
"number": 123,
"version": 123
},
"expiresAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"state": "live",
"reason": "turned_off",
"viewCount": 123,
"lastViewedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"download": {
"mp4": true,
"vtt": true
}
}
}Presentations
Change a share link — audience, version, expiry, label — or turn it off
revision moves the link to another version (normally the latest). off: true turns the link off for good (anything else in the body is ignored); a turned-off link cannot be changed or turned back on (off: false → 409 SHARE_OFF): create a new link instead. A new expiresAt on an EXPIRED link brings it back: the 20-live cap applies again (409 SHARE_LIMIT ) and its version must still be shareable (409 NOT_SHAREABLE). If a move is refused and the link’s old version was removed meanwhile, the link is turned off (reason: pruned).
PATCH
/
api
/
user
/
presentations
/
{id}
/
shares
/
{shareId}
Change a share link — audience, version, expiry, label — or turn it off
curl --request PATCH \
--url https://pria.praxislxp.com/api/user/presentations/{id}/shares/{shareId} \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"revision": 2,
"expiresAt": "2023-11-07T05:31:56Z",
"label": "<string>",
"off": true
}
'import requests
url = "https://pria.praxislxp.com/api/user/presentations/{id}/shares/{shareId}"
payload = {
"revision": 2,
"expiresAt": "2023-11-07T05:31:56Z",
"label": "<string>",
"off": True
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({revision: 2, expiresAt: '2023-11-07T05:31:56Z', label: '<string>', off: true})
};
fetch('https://pria.praxislxp.com/api/user/presentations/{id}/shares/{shareId}', 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}/shares/{shareId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'revision' => 2,
'expiresAt' => '2023-11-07T05:31:56Z',
'label' => '<string>',
'off' => true
]),
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}/shares/{shareId}"
payload := strings.NewReader("{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\",\n \"off\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://pria.praxislxp.com/api/user/presentations/{id}/shares/{shareId}")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\",\n \"off\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/presentations/{id}/shares/{shareId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"revision\": 2,\n \"expiresAt\": \"2023-11-07T05:31:56Z\",\n \"label\": \"<string>\",\n \"off\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"share": {
"shareId": "<string>",
"url": "https://pria.praxis-ai.com/share#3q2-7wAbCdEfGhIjKlMnOpQrStUvWxYz0123456789_-A",
"path": "/share#3q2-7wAbCdEfGhIjKlMnOpQrStUvWxYz0123456789_-A",
"label": "Acme — Bob",
"audience": "public",
"revision": {
"number": 123,
"version": 123
},
"expiresAt": "2023-11-07T05:31:56Z",
"revokedAt": "2023-11-07T05:31:56Z",
"state": "live",
"reason": "turned_off",
"viewCount": 123,
"lastViewedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"download": {
"mp4": true,
"vtt": true
}
}
}Authorizations
JWT token passed in x-access-token header
Body
application/json
Was this page helpful?