---
title: "PUT /enforcedGuardrailsConfiguration"
method: PUT
path: "/enforcedGuardrailsConfiguration"
---

# PUT /enforcedGuardrailsConfiguration

`PUT /enforcedGuardrailsConfiguration`

Sets the account-level enforced guardrail configuration.

## Request body

- object
  - `configId` string — Unique ID for the account enforced configuration.
  - `guardrailInferenceConfig` object, required — Account-level enforced guardrail input configuration.
    - `guardrailIdentifier` string — Identifier for the guardrail, could be the ID or the ARN.
    - `guardrailVersion` string — Numerical guardrail version.
    - `selectiveContentGuarding` object — Selective content guarding controls for enforced guardrails.
      - `system` 'SELECTIVE' | 'COMPREHENSIVE' — Selective guarding mode for system prompts."
      - `messages` 'SELECTIVE' | 'COMPREHENSIVE' — Selective guarding mode for user messages.
    - `modelEnforcement` object — Model-specific information for the enforced guardrail configuration. If not present, the configuration is enforced on all models
      - `includedModels` IncludedModelId[], required — Models to enforce the guardrail on.
      - `excludedModels` ExcludedModelId[], required — Models to exclude from enforcement of the guardrail.

## Response `200`

Success

- PutEnforcedGuardrailConfigurationResponse
  - `configId` string — Unique ID for the account enforced configuration.
  - `updatedAt` string, date-time — Timestamp.
  - `updatedBy` string — The ARN of the role used to update the configuration.

## Other responses

- `480` — ResourceNotFoundException
- `481` — AccessDeniedException
- `482` — ValidationException
- `483` — ConflictException
- `484` — InternalServerException
- `485` — 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/versions/3bc874e43ecd/schema)
