Retry a failed evidence pack
curl --request POST \
--url https://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/retryimport requests
url = "https://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/retry"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/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://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/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://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/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://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/retry")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/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{
"packId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending"
}{
"error": "Unauthorized",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"requestId": "5f0c9a4e-3b1d-4e7a-9c2f-8d6b1a0e7c34",
"details": "<unknown>"
}{
"error": "Unauthorized",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"requestId": "5f0c9a4e-3b1d-4e7a-9c2f-8d6b1a0e7c34",
"details": "<unknown>"
}{
"error": "Unauthorized",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"requestId": "5f0c9a4e-3b1d-4e7a-9c2f-8d6b1a0e7c34",
"details": "<unknown>"
}{
"error": "Unauthorized",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"requestId": "5f0c9a4e-3b1d-4e7a-9c2f-8d6b1a0e7c34",
"details": "<unknown>"
}Retry a failed evidence pack
Re-runs a failed pack in place with the same parameters. The pack goes back to pending, its error is cleared, and generatedAt is reset so the 30-minute timeout counts from the retry. Packs in any other status return 409. The retry is recorded in the audit log as compliance.pack_retried.
Authenticated with a dashboard session (browser cookie), not x-api-key, and requires the compliance:generate permission (owner/admin only) and the Pro plan or above.
POST
/
v1
/
projects
/
{id}
/
evidence-packs
/
{packId}
/
retry
Retry a failed evidence pack
curl --request POST \
--url https://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/retryimport requests
url = "https://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/retry"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/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://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/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://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/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://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/retry")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zespan.com/v1/projects/{id}/evidence-packs/{packId}/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{
"packId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending"
}{
"error": "Unauthorized",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"requestId": "5f0c9a4e-3b1d-4e7a-9c2f-8d6b1a0e7c34",
"details": "<unknown>"
}{
"error": "Unauthorized",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"requestId": "5f0c9a4e-3b1d-4e7a-9c2f-8d6b1a0e7c34",
"details": "<unknown>"
}{
"error": "Unauthorized",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"requestId": "5f0c9a4e-3b1d-4e7a-9c2f-8d6b1a0e7c34",
"details": "<unknown>"
}{
"error": "Unauthorized",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded",
"requestId": "5f0c9a4e-3b1d-4e7a-9c2f-8d6b1a0e7c34",
"details": "<unknown>"
}Was this page helpful?

