> For the complete documentation index, see [llms.txt](https://api-kit.prix.im/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api-kit.prix.im/contract-tag/create.md).

# 계약서 태그 생성 API

계약서 태그를 생성할 수 있는 API를 제공합니다.

<br>

## `POST` kit-api/v1/contracts/tags

Method: POST\
Endpoint: kit-api/v1/contracts/tags

<br>

## Example

```
...kit-api/v1/contracts/tags
```

```json
{
  "input": {
    "name": "근로계약서",
    "order": 12,
    "colorCode": "RED" // RED, ORANGE, YELLOW, GREEN, BLUE, GRAY 존재
  }
}
```

<br>

## Request Body

| Key             | Type   | Description                                    | Required |
| --------------- | ------ | ---------------------------------------------- | -------- |
| input.name      | string | 태그 이름                                          | yes      |
| input.order     | number | 태그 순서                                          | no       |
| input.colorCode | string | 태그 색상 (RED, ORANGE, YELLOW, GREEN, BLUE, GRAY) | no       |

<br>

## Response

```json
{
  "ok": true, // api 성공 시
  "data": {
    "id": 1462,
    "name": "근로계약서",
    "colorCode": "RED",
    "order": 12
  }
}
```

<br>

```json
{
  "ok": false, // api 실패 시
  "message": "error message",
  "errorCode": "ERROR_CODE"
}
```

<br>
