---
title: "Sets the policy for a given attestation type."
method: PUT
path: "/policies/{attestationType}"
---

# Sets the policy for a given attestation type.

`PUT /policies/{attestationType}`

Sets the policy for a given attestation type.

## Path parameters

- `attestationType` 'SgxEnclave' | 'OpenEnclave' | 'AzureGuest' | 'SevSnpVm' | 'Tpm' | 'TdxVm', required

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- PolicyResponse — The response to an attestation policy operation
  - `token` string — An RFC7519 JSON Web Token structure whose body is an PolicyResult object.

## Other responses

- `default` — An unexpected error response.

## Changes

- **2026-07-13** (2018-09-01-preview) `74e240995f3e` — 1 info
  - api tag `Policy` removed
- **2026-07-13** (2018-09-01-preview) `e2463a10f80d` — 1 breaking
  - api path removed without deprecation
- **2026-07-13** (2018-09-01-preview) `cb7cc16888f7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/attestation-attestation/changes/policies/:attestationType/put.md)

---

[API](https://skmtc.dev/azure/apis/attestation-attestation.md) · [All operations](https://skmtc.dev/azure/apis/attestation-attestation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/attestation-attestation/revisions/74e240995f3e/schema)
