---
title: "Accepts a new policy document and returns a JWT which expresses used in preparation to set attestation policy."
method: POST
path: "/operations/policy/updatepolicy"
tags: ["Policy"]
---

# Accepts a new policy document and returns a JWT which expresses used in preparation to set attestation policy.

`POST /operations/policy/updatepolicy`

## Query parameters

- `api-version` '2018-09-01-preview', required
- `tee` 'SgxEnclave' | 'OpenEnclave' | 'CyResComponent' | 'VSMEnclave', required

## Response `200`

Success - Returns a JWT signed by the metadata signing key that contains the hash of the supplied policy to be set.

- string

## Other responses

- `400` — Bad request
- `401` — Request is unauthorized
- `default` — Error response describing why the operation failed

## Changes

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

[Change history](https://skmtc.dev/azure/apis/attestation-attestation/changes/operations/policy/updatepolicy/post.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.dev/azure/apis/attestation-attestation/revisions/e2463a10f80d?raw)
