# 계약서에 태그 연결 API

계약서에 연결된 태그를 업데이트할 수 있는 API를 제공합니다.

<br>

## `PATCH` kit-api/v1/contracts/\[contract uuid]

Method: PATCH\
Endpoint: kit-api/v1/contracts/\[contract uuid]\
Param: contract uuid는 계약서의 식별값을 의미

<br>

## Example

```
...kit-api/v1/contracts/ed976505-bcbd-47bd-913d-f4cde05dea7a
```

```json
{
  "input": {
    "tagIds": [12345, 12346]
  }
}
```

<br>

## Request Body

| Key          | Type         | Description      | Required |
| ------------ | ------------ | ---------------- | -------- |
| input.tagIds | number array | 연결할 계약서 태그 ID 목록 | yes      |

<br>

## Response

```json
{
  "ok": true // api 성공 시
}
```

<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/contract-update.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.
