---
title: "PATCH /automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}"
method: PATCH
path: "/automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}"
---

# PATCH /automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}

`PATCH /automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}`

Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.

## Path parameters

- `policyArn` string, required
- `testCaseId` string, required

## Request body

- object
  - `guardContent` string, password, required — The updated content to be validated by the Automated Reasoning policy.
  - `queryContent` string, password — The updated input query or prompt that generated the content.
  - `lastUpdatedAt` string, date-time, required — The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.
  - `expectedAggregatedFindingsResult` 'VALID' | 'INVALID' | 'SATISFIABLE' | 'IMPOSSIBLE' | 'TRANSLATION_AMBIGUOUS' | 'TOO_COMPLEX' | 'NO_TRANSLATION', required — The updated expected result of the Automated Reasoning check.
  - `confidenceThreshold` number, double — The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.
  - `clientRequestToken` string — A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error.

## Response `200`

Success

- UpdateAutomatedReasoningPolicyTestCaseResponse
  - `policyArn` string, required — The Amazon Resource Name (ARN) of the policy that contains the updated test.
  - `testCaseId` string, required — The unique identifier of the updated test.

## Other responses

- `480` — ResourceNotFoundException
- `481` — AccessDeniedException
- `482` — ValidationException
- `483` — ConflictException
- `484` — InternalServerException
- `485` — ResourceInUseException
- `486` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/bedrock.md) · [All operations](https://skmtc.net/aws/apis/bedrock/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/bedrock/revisions/3bc874e43ecd/schema)
