> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# List failures for a screen test orchestration

GET //api/v1/screen-test/runs/{workflowID}/failures

Returns the failures recorded across one orchestration's runs, each with its classification state. classification_state is always present; pending means no classifier has processed the failure. The remaining analysis fields are nullable, since classifiers produce different evidence. When operator_category is set it supersedes failure_category, which is the precedence the report page applies; both are returned so a caller can see the original classifier output. overridden is the flag on the failure's parent result, matching /test-results; the same key on /summaries is the run-level flag and the two can disagree. A dismissed failure is still listed here, and its result may report PASSED on /test-results. Rows are ordered oldest run first, and unlike /summaries this endpoint also lists failures from an orchestration that is still running.

Reference: https://docs.nvidia.com/remediation-orchestrator/reference/rest-api/screen-test/list-failures-for-a-screen-test-orchestration

## Request

### Path parameters

- `workflowID` (string, required) — Orchestration workflow ID

### Query parameters

- `page` (integer, optional, default: 1) — 1-based page number
- `page_size` (integer, optional, default: 100) — Failures per page (1-200)

## Response

### 200

OK

- `data` (list of runFailureResponse, optional)
- `has_more` (boolean, optional)
- `page` (integer, optional)
- `page_size` (integer, optional)
- `total_count` (integer, optional)

## Errors

### 400 Bad Request Error

Bad Request

- `string`

### 404 Not Found Error

Not Found

- `string`

### 500 Internal Server Error

Internal Server Error

- `string`

## Types

### runFailureResponse

- `child_run_id` (string, optional)
- `classification_description` (string, optional, nullable)
- `classification_state` (string, optional)
- `classifier_source` (string, optional, nullable)
- `created_at` (string, optional)
- `error_message` (string, optional)
- `failure_category` (string, optional, nullable)
- `failure_id` (integer, optional)
- `failure_severity` (string, optional, nullable)
- `likely_root_cause` (string, optional, nullable)
- `normalized_reason` (string, optional, nullable)
- `operator_category` (string, optional, nullable)
- `overridden` (boolean, optional)
- `result_id` (integer, optional)
- `summary_id` (integer, optional)
- `test_name` (string, optional)
- `test_step` (string, optional, nullable)

## Examples

**Response**

```json
{
  "data": [
    {
      "child_run_id": "string",
      "classification_description": "string",
      "classification_state": "string",
      "classifier_source": "string",
      "created_at": "string",
      "error_message": "string",
      "failure_category": "string",
      "failure_id": 1,
      "failure_severity": "string",
      "likely_root_cause": "string",
      "normalized_reason": "string",
      "operator_category": "string",
      "overridden": true,
      "result_id": 1,
      "summary_id": 1,
      "test_name": "string",
      "test_step": "string"
    }
  ],
  "has_more": true,
  "page": 1,
  "page_size": 1,
  "total_count": 1
}
```

**SDK Code**

```python
import requests

url = "https://api.example.com/api/v1/screen-test/runs/workflowID/failures"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.example.com/api/v1/screen-test/runs/workflowID/failures';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/api/v1/screen-test/runs/workflowID/failures"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/v1/screen-test/runs/workflowID/failures")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/screen-test/runs/workflowID/failures")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/api/v1/screen-test/runs/workflowID/failures');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.example.com/api/v1/screen-test/runs/workflowID/failures");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/api/v1/screen-test/runs/workflowID/failures")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```