---
title: "POST /api/v2/secret-rotations/azure-client-secret/{rotationId}/move"
method: POST
path: "/api/v2/secret-rotations/azure-client-secret/{rotationId}/move"
tags: ["Secret Rotations"]
---

# POST /api/v2/secret-rotations/azure-client-secret/{rotationId}/move

`POST /api/v2/secret-rotations/azure-client-secret/{rotationId}/move`

## Request

- Base URL: `https://us.infisical.com`
- URL: `https://us.infisical.com/api/v2/secret-rotations/azure-client-secret/{rotationId}/move`
- Auth: none declared

Move the specified Azure Client Secret Rotation to a different secret path or environment.

## Path parameters

- `rotationId` string, uuid, required

## Request body

- object
  - `destinationEnvironment` string, required
  - `destinationSecretPath` string, required
  - `overwriteDestination` boolean

## Response `200`

Default Response

- object
  - `secretRotation` object, required
    - `id` string, uuid, required
    - `name` string, required
    - `description` string, nullable
    - `isAutoRotationEnabled` boolean
    - `activeIndex` number
    - `folderId` string, uuid, required
    - `connectionId` string, uuid, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `rotationInterval` number, required
    - `rotationStatus` string, required
    - `lastRotationAttemptedAt` string, date-time, required
    - `lastRotatedAt` string, date-time, required
    - `lastRotationJobId` string, nullable
    - `nextRotationAt` string, date-time, nullable
    - `isLastRotationManual` boolean
    - `connection` object, required
      - `app` 'azure-client-secrets', required
      - `name` string, required
      - `id` string, uuid, required
    - `environment` object, required
      - `slug` string, required
      - `name` string, required
      - `id` string, uuid, required
    - `projectId` string, required
    - `folder` object, required
      - `id` string, required
      - `path` string, required
    - `rotateAtUtc` object, required
      - `hours` number, required
      - `minutes` number, required
    - `lastRotationMessage` string, nullable
    - `type` 'azure-client-secret', required
    - `parameters` object, required
      - `objectId` string, required: The ID of the Azure Application to rotate the client secret for.
      - `appName` string: The name of the Azure Application to rotate the client secret for.
      - `clientId` string, required: The client ID of the Azure Application to rotate the client secret for.
    - `secretsMapping` object, required
      - `clientId` string, required: The name of the secret that the client ID will be mapped to.
      - `clientSecret` string, required: The name of the secret that the rotated client secret will be mapped to.

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `422`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/infisical/apis/infisical-api.md) - [All operations](https://skmtc.dev/infisical/apis/infisical-api/llms.txt) - [OpenAPI document](https://skmtc.dev/infisical/apis/infisical-api/revisions/7f940199c899?raw)
