---
title: "update vendors"
method: POST
path: "/vendors/"
tags: ["vendor"]
---

# update vendors

`POST /vendors/`

update vendors

## Request body

- MessageUpdateVendorInfoReq
  - `vendors` StructsVendorConfigInfo[]
    - `id` string — The value of the VendorID is similar to AWS
    - `name` string — The value of the Name is similar to AWS
    - `regions` StructsRegionConfigInfo[]
      - `id` string
      - `name` string
      - `zones` StructsZoneInfo[]
        - `comment` string
        - `zoneId` string — The value of the ZoneID is similar to CN-HANGZHOU-H
        - `zoneName` string — The value of the Name is similar to Hangzhou(H)
    - `specs` StructsSpecInfo[]
      - `cpu` integer
      - `diskType` string — eg: NVMeSSD/SSD/SATA
      - `id` string — ID of the resource specification
      - `memory` integer — The amount of memory occupied by the instance, in GiB
      - `name` string — Name of the resource specification,eg: TiDB.c1.large
      - `purposeType` string — eg:Compute/Storage/Schedule

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `vendors` StructsVendorConfigInfo[]
      - `id` string — The value of the VendorID is similar to AWS
      - `name` string — The value of the Name is similar to AWS
      - `regions` StructsRegionConfigInfo[]
        - `id` string
        - `name` string
        - `zones` StructsZoneInfo[]
          - `comment` string
          - `zoneId` string — The value of the ZoneID is similar to CN-HANGZHOU-H
          - `zoneName` string — The value of the Name is similar to Hangzhou(H)
      - `specs` StructsSpecInfo[]
        - `cpu` integer
        - `diskType` string — eg: NVMeSSD/SSD/SATA
        - `id` string — ID of the resource specification
        - `memory` integer — The amount of memory occupied by the instance, in GiB
        - `name` string — Name of the resource specification,eg: TiDB.c1.large
        - `purposeType` string — eg:Compute/Storage/Schedule
  - `message` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

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