> 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/signature-template/remove.md).

# 전자서명 템플릿 삭제 API

전자서명 템플릿을 삭제할 수 있는 API를 제공합니다.

전자서명 템플릿을 삭제할 수 있는 API를 제공합니다.

<br>

## `DELETE` kit-api/v1/signature-templates/\[key]

* Method: DELETE
* Endpoint: kit-api/v1/signature-templates/\[key]
* Param: key는 전자서명 템플릿의 id(숫자) 혹은 slug(문자)를 의미

<br>

## Example

```
...kit-api/v1/signature-templates/4328
```

<br>

## Request Path 파라미터

| Key | Description                          | Required |
| --- | ------------------------------------ | -------- |
| key | 삭제할 전자서명 템플릿의 id(숫자) 혹은 slug(문자) 식별값 | yes      |

<br>

## Response

```json
{
  "ok": true, // api 성공 여부
  "data": {
    "id": 4328, // 고유 식별 id
    "name": "MOU 템플릿", // 전자서명 템플릿 이름
    "slug": "template-slug" // slug(문자)
  }
}
```

```json
{
  "ok": false, // api 실패
  "message": "error message", // Error가 존재하면 message(string)로 전달
  "errorCode": "ERROR_CODE"
}
```

<br>

## Webhook

전자서명 템플릿이 삭제되면 `SIGNATURE_TEMPLATE_DELETED` 웹훅 이벤트가 발송됩니다. 이 이벤트는 계약서 태그 필터와 상관없이, 해당 이벤트를 구독한 웹훅에 발송됩니다.

<br>

| Status Code | Error Code                      | Description                    |
| ----------- | ------------------------------- | ------------------------------ |
| 403         | FORBIDDEN\_USER                 | 전자서명 템플릿 편집 권한이 없어 삭제할 수 없는 경우 |
| 404         | NOT\_FOUND\_SIGNATURE\_TEMPLATE | 전자서명 템플릿이 존재하지 않는 경우           |

<br>
