---
title: "Power control Trays"
method: PATCH
path: "/v2/org/{org}/nico/tray/power"
tags: ["Tray"]
---

# Power control Trays

`PATCH /v2/org/{org}/nico/tray/power`

Power control Trays with optional filters. If no filter is specified, targets all trays in the Site.

Supported power states: `on`, `off`, `cycle`, `forceoff`, `forcecycle`.

**Filter constraints:**
- `rackId` and `rackName` are mutually exclusive
- `rackId`/`rackName` cannot be combined with `ids`/`componentIds` (rack-level vs component-level targeting)
- `componentIds` requires `type` to be specified

Org must have an Infrastructure Provider entity. User must have authorization role with `PROVIDER_ADMIN` suffix.

## Request body

- BatchUpdateTrayPowerStateRequest — Request body for batch tray power control operations
  - `siteId` string, uuid, required — ID of the Site
  - `filter` TrayFilter — Filter criteria for selecting trays in batch operations. If omitted or empty, all trays in the site are targeted. Constraints: `rackId` and `rackName` are mutually exclusive. `rackId`/`rackName` cannot be combined with `ids`/`componentIds`. `componentIds` requires `type`. `slotId` requires `rackId` or `rackName`, must be >= 0, and composes with the rest of the filter via AND.
    - `rackId` string, uuid — Filter by Rack ID
    - `rackName` string — Filter by Rack name
    - `type` 'Compute' | 'NVSwitch' | 'PowerShelf' — Filter by tray type
    - `componentIds` string[] — Filter by component ID. Requires 'type'.
    - `ids` string[] — Filter by tray UUID
    - `slotId` integer — Restrict to trays at this rack slot (matches `position.slotId`). Requires `rackId` or `rackName`. Composes with the rest of the filter via AND.
  - `state` 'on' | 'off' | 'cycle' | 'forceoff' | 'forcecycle', required — Target power state
  - `ruleId` string, uuid — Optional Operation Rule UUID. When set, pins every task spawned by this batch to the named rule and overrides Flow's default rule resolution.
  - `overrideReadinessCheck` boolean — When true, proceed even if one or more target components (or hosts on the owning rack for rack-scoped components) are reported as not ready by their persisted status. Intended for operator-supervised maintenance.

## Response `200`

OK

- UpdatePowerStateResponse — Response for power control operations containing task IDs for tracking
  - `taskIds` string[] — List of task IDs created for the power control operation (one per rack)

## Other responses

- `400` — Error response when request data cannot be validated
- `403` — Error response when user is not authorized to call an endpoint or retrieve/modify objects
- `504` — The Site did not return a result within the request budget allocated to Site communication within the request cycle. This can occur if the Site Controller is down or under heavy request load. Operations are in general safe to retry. In rare cases, operations that create or update resources may succeed even if timeout is returned.

## Changes

- **2026-08-20** `652b7687aa81` — 3 breaking, 3 info
  - removed the enum value `compute` of the request property `filter/type`
  - removed the enum value `powershelf` of the request property `filter/type`
  - removed the enum value `switch` of the request property `filter/type`
  - added the new `Compute` enum value to the request property `filter/type`
  - …2 more
- **2026-08-14** `441cfc1afc1c` — 1 info
  - added the non-success response with the status `504`
- **2026-06-12** `268117a96421` — 1 info
  - added the new optional request property `overrideReadinessCheck`
- **2026-06-10** `9a135fa35aad` — 1 info
  - added the new optional request property `ruleId`
- **2026-06-02** `b078e63260c1` — 1 info
  - added the new optional request property `filter/slotId`

[Full history](https://skmtc.dev/nvidia/apis/nvidia-infra-controller-rest-api/changes/v2/org/:org/nico/tray/power/patch.md)

---

[API](https://skmtc.dev/nvidia/apis/nvidia-infra-controller-rest-api.md) · [All operations](https://skmtc.dev/nvidia/apis/nvidia-infra-controller-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nvidia/nvidia-infra-controller-rest-api/revisions/2096eb1db2c1/schema)
