# 계약서 태그 생성 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-kit.prix.im/contract-tag/create.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
