---
title: "POST /update-rotation-settings"
method: POST
path: "/update-rotation-settings"
tags: ["v2"]
---

# POST /update-rotation-settings

`POST /update-rotation-settings`

## Request body

- UpdateRotationSettings — updateRotationSettings is a command that updates rotations settings of an existing key
  - `auto-rotate` boolean, required — Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation
  - `json` boolean — Set output format to JSON
  - `name` string, required — Key name
  - `rotation-event-in` string[] — How many days before the rotation of the item would you like to be notified
  - `rotation-interval` integer — The number of days to wait between every automatic key rotation (7-365)
  - `token` string — Authentication token (see `/auth` and `/configure`)
  - `uid-token` string — The universal identity token, Required only for universal_identity authentication

## Response `200`

rotateKeyResponse wraps response body.

- RotateKeyOutput — RotateKeyOutput defines output of RotateKey operation
  - `classic_key_gw_url` string
  - `item_type` string
  - `new_item_version` integer
  - `next_rotation_date` string, date-time

## Other responses

- `default` — errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.net/akeyless/apis/akeyless-api.md) · [All operations](https://skmtc.net/akeyless/apis/akeyless-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akeyless/akeyless-api/versions/0ceb25634501/schema)
