---
title: "Change directory of `ReservationOrder`."
method: POST
path: "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/changeDirectory"
tags: ["ReservationOrder, ChangeDirectory"]
---

# Change directory of `ReservationOrder`.

`POST /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/changeDirectory`

Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id

## Path parameters

- `reservationOrderId` string, required

## Query parameters

- `api-version` string, required

## Request body

- ChangeDirectoryRequest
  - `destinationTenantId` string — Tenant id GUID that reservation order is to be transferred to

## Response `200`

List of `Reservation`s created after the change directory operation.

- ChangeDirectoryResponse — Change directory response
  - `reservationOrder` ChangeDirectoryResult — Change directory result for reservation order or reservation
    - `id` string — Identifier of the reservation order or reservation
    - `name` string — Name of the reservation order or reservation
    - `isSucceeded` boolean — True if change directory operation succeeded on this reservation order or reservation
    - `error` string — Error reason if operation failed. Null otherwise
  - `reservations` ChangeDirectoryResult[]
    - `id` string — Identifier of the reservation order or reservation
    - `name` string — Name of the reservation order or reservation
    - `isSucceeded` boolean — True if change directory operation succeeded on this reservation order or reservation
    - `error` string — Error reason if operation failed. Null otherwise

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/azure/apis/reservations-microsoft-capacity-reservations.md) · [All operations](https://skmtc.net/azure/apis/reservations-microsoft-capacity-reservations/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/reservations-microsoft-capacity-reservations/revisions/1d4481f1bd1e/schema)
