Retry an evaluation job
curl --request POST \
--url https://api.scale.com/v2/autoevals/retry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jobId": "<string>"
}
'import requests
url = "https://api.scale.com/v2/autoevals/retry"
payload = { "jobId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({jobId: '<string>'})
};
fetch('https://api.scale.com/v2/autoevals/retry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.scale.com/v2/autoevals/retry"
payload := strings.NewReader("{\n \"jobId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.scale.com/v2/autoevals/retry")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jobId\": \"<string>\"\n}")
.asString();{
"status_code": 200,
"description": "Evaluation job retried successfully."
}{
"status_code": 500,
"error": "Invalid job state."
}{
"status_code": 500,
"error": "Internal server error."
}Evaluation
Retry an evaluation job
Retries an evaluation job.
POST
/
v2
/
autoevals
/
retry
Retry an evaluation job
curl --request POST \
--url https://api.scale.com/v2/autoevals/retry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jobId": "<string>"
}
'import requests
url = "https://api.scale.com/v2/autoevals/retry"
payload = { "jobId": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({jobId: '<string>'})
};
fetch('https://api.scale.com/v2/autoevals/retry', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.scale.com/v2/autoevals/retry"
payload := strings.NewReader("{\n \"jobId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.scale.com/v2/autoevals/retry")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jobId\": \"<string>\"\n}")
.asString();{
"status_code": 200,
"description": "Evaluation job retried successfully."
}{
"status_code": 500,
"error": "Invalid job state."
}{
"status_code": 500,
"error": "Internal server error."
}Authorizations
bearerAuthbasicAuth
Your API Key is the Bearer token. See the Authentication section to learn how to access your key.
Body
application/json
ID of the evaluation job to retry.
⌘I

