---
title: "created  specs"
method: POST
path: "/specs/"
tags: ["platform"]
---

# created  specs

`POST /specs/`

created specs

## Request body

- MessageCreateSpecsReq
  - `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
    - `purpose_type` string — eg:Compute/Storage/Schedule
    - `status` string — e.g. Online/Offline

## Response `200`

OK

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

## Other responses

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

## Changes

- **2022-03-07** `e9e75c7c2edb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/pingcap/apis/em-ui-api/changes/specs/post.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/e9e75c7c2edb/schema)
