Retry RDP PII analysis
curl --request POST \
--url https://use.hoop.dev/api/sessions/{id}/rdp-detections/retryimport requests
url = "https://use.hoop.dev/api/sessions/{id}/rdp-detections/retry"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://use.hoop.dev/api/sessions/{id}/rdp-detections/retry', 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://use.hoop.dev/api/sessions/{id}/rdp-detections/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://use.hoop.dev/api/sessions/{id}/rdp-detections/retry"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://use.hoop.dev/api/sessions/{id}/rdp-detections/retry")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/sessions/{id}/rdp-detections/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"analysis": {
"attempt": 123,
"finished_at": "<string>",
"last_error": "<string>",
"max_attempts": 123,
"started_at": "<string>",
"status": "<string>"
},
"analysis_status": "<string>",
"detections": [
{
"entity_type": "<string>",
"frame_index": 123,
"height": 123,
"score": 123,
"timestamp": 123,
"width": 123,
"x": 123,
"y": 123
}
],
"total": 123
}{
"message": "the error description"
}{
"message": "the error description"
}{
"message": "the error description"
}Sessions
Retry RDP PII analysis
Resets a failed RDP analysis job to pending so the worker pool can re-claim it.
POST
/
sessions
/
{id}
/
rdp-detections
/
retry
Retry RDP PII analysis
curl --request POST \
--url https://use.hoop.dev/api/sessions/{id}/rdp-detections/retryimport requests
url = "https://use.hoop.dev/api/sessions/{id}/rdp-detections/retry"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://use.hoop.dev/api/sessions/{id}/rdp-detections/retry', 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://use.hoop.dev/api/sessions/{id}/rdp-detections/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://use.hoop.dev/api/sessions/{id}/rdp-detections/retry"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://use.hoop.dev/api/sessions/{id}/rdp-detections/retry")
.asString();require 'uri'
require 'net/http'
url = URI("https://use.hoop.dev/api/sessions/{id}/rdp-detections/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"analysis": {
"attempt": 123,
"finished_at": "<string>",
"last_error": "<string>",
"max_attempts": 123,
"started_at": "<string>",
"status": "<string>"
},
"analysis_status": "<string>",
"detections": [
{
"entity_type": "<string>",
"frame_index": 123,
"height": 123,
"score": 123,
"timestamp": 123,
"width": 123,
"x": 123,
"y": 123
}
],
"total": 123
}{
"message": "the error description"
}{
"message": "the error description"
}{
"message": "the error description"
}Was this page helpful?
⌘I