curl --request POST \
--url https://pria.praxislxp.com/api/user/presentations/{id}/cancel \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"turn_id": "1760000000000-ab12",
"execution_id": "<string>"
}
'import requests
url = "https://pria.praxislxp.com/api/user/presentations/{id}/cancel"
payload = {
"turn_id": "1760000000000-ab12",
"execution_id": "<string>"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({turn_id: '1760000000000-ab12', execution_id: '<string>'})
};
fetch('https://pria.praxislxp.com/api/user/presentations/{id}/cancel', 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}/cancel",
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([
'turn_id' => '1760000000000-ab12',
'execution_id' => '<string>'
]),
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}/cancel"
payload := strings.NewReader("{\n \"turn_id\": \"1760000000000-ab12\",\n \"execution_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://pria.praxislxp.com/api/user/presentations/{id}/cancel")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"turn_id\": \"1760000000000-ab12\",\n \"execution_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/presentations/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"turn_id\": \"1760000000000-ab12\",\n \"execution_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"stopped": true,
"status": "failed",
"stopReason": "CANCEL",
"stoppedAt": "2023-11-07T05:31:56Z"
}{
"success": false,
"code": "NOT_STOPPABLE",
"reason": "RECORDING_STARTED"
}Stop making a presentation video
Stops your video while it is being made: the voice-over stops before its next scene, and a presenter recording that has not started yet never starts. Nothing is refunded and nothing new is charged — what was already made is still charged, and a presenter recording that has already started finishes and is charged. A video stopped before it could be previewed ends as failed with failureCode STOPPED; one that could already be previewed stays previewable without a presenter. Only your own video; asking again answers the same. The chat answer that was making the video ends too: it stops at once and its answer is “Video stopped.” with the video’s card. To reach that answer quickly, send the answer’s turn_id (the video’s buildTurnKey) and, when you have it, its execution_id from GET /api/ai/personal/subagent/active. Both are optional and are checked: a turn_id that is not this video’s answer is ignored. Without them the answer is still ended, at its next step.
curl --request POST \
--url https://pria.praxislxp.com/api/user/presentations/{id}/cancel \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"turn_id": "1760000000000-ab12",
"execution_id": "<string>"
}
'import requests
url = "https://pria.praxislxp.com/api/user/presentations/{id}/cancel"
payload = {
"turn_id": "1760000000000-ab12",
"execution_id": "<string>"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({turn_id: '1760000000000-ab12', execution_id: '<string>'})
};
fetch('https://pria.praxislxp.com/api/user/presentations/{id}/cancel', 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}/cancel",
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([
'turn_id' => '1760000000000-ab12',
'execution_id' => '<string>'
]),
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}/cancel"
payload := strings.NewReader("{\n \"turn_id\": \"1760000000000-ab12\",\n \"execution_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://pria.praxislxp.com/api/user/presentations/{id}/cancel")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"turn_id\": \"1760000000000-ab12\",\n \"execution_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/user/presentations/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"turn_id\": \"1760000000000-ab12\",\n \"execution_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"stopped": true,
"status": "failed",
"stopReason": "CANCEL",
"stoppedAt": "2023-11-07T05:31:56Z"
}{
"success": false,
"code": "NOT_STOPPABLE",
"reason": "RECORDING_STARTED"
}Authorizations
JWT token passed in x-access-token header
Path Parameters
Body
Was this page helpful?