---
title: "Update disk info"
method: PUT
path: "/resources/disk"
tags: ["resource"]
---

# Update disk info

`PUT /resources/disk`

update disk information

## Request body

- MessageUpdateDiskReq
  - `newDiskInfo` StructsDiskInfo
    - `capacity` integer — Disk size, Unit: GB
    - `diskId` string
    - `hostId` string
    - `name` string — [sda/sdb/nvmep0...]
    - `path` string — Disk mount path: [/data1]
    - `status` string — Disk Status, 0 for available, 1 for inused
    - `type` string — Disk type: [nvme-ssd/ssd/sata]

## Response `200`

OK

- object
  - `code` integer
  - `data` object
  - `message` string

## Changes

- **2022-03-22** `802522f9dd16` — 1 info
  - endpoint added
- **2022-03-21** `bf8b42747795` — 1 breaking
  - api path removed without deprecation
- **2022-03-20** `fe50735c561d` — 1 info
  - endpoint added
- **2022-03-07** `e9e75c7c2edb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/pingcap/apis/em-ui-api/changes/resources/disk/put.md)

---

[API](https://skmtc.dev/pingcap/apis/em-ui-api.md) · [All operations](https://skmtc.dev/pingcap/apis/em-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pingcap/em-ui-api/revisions/631e4b26b7e8/schema)
