# Moderation API

> 중재 기능을 연동하려면 Moderation API를 사용합니다.

Moderation API를 통해 Moderation 서비스와 연동하여 자동 프로세스로 인시던트를 처리할 수 있습니다.

## 사용 가능한 엔드포인트##available-endpoints

다음 조치에 대해 엔드포인트가 제공됩니다.

* 페이지 지정, 필터링, 정렬된 인시던트 목록을 검색합니다.
* 특정 인시던트를 검색합니다.
* 인시던트를 업데이트합니다.
* 플레이어 조치 유형을 검색합니다(플레이어에게 적용 가능한 조치).
* 필터링된 조치 목록을 검색합니다.
* 플레이어에게 조치를 적용합니다.
* 플레이어에게 적용된 조치를 업데이트하거나 취소합니다.
* 페이지 지정, 필터링, 정렬된 플레이어 목록을 검색합니다.

> **Note:**
>
> [커스텀 조치](./custom-actions.md) 관리는 현재 Moderation API에서 지원되지 않습니다.

전체 API 기술 자료는 [서비스 Docs](https://services.docs.unity.com/moderation/v1/)에서 확인할 수 있습니다.

이 API는 인증을 위해 [서비스 계정](https://services.docs.unity.com/docs/service-account-auth/)을 지원합니다.

## 인시던트 해결 워크플로##incident-resolution-workflow

1. 플레이어 조치 생성
   * 시간 기반 조치의 경우 플레이어에게 현재 해당 유형의 활성 조치가 존재하지 않아야 합니다.
     아직 활성 상태라면 먼저 [취소](https://services.docs.unity.com/moderation/v1/#tag/Player-Actions/operation/PatchPlayerAction)해야 합니다.
   * 플레이어에게 적용할 조치를 [생성](https://services.docs.unity.com/moderation/v1/#tag/Player-Actions/operation/PostPlayerAction)합니다.
2. 인시던트 상태를 해결됨으로 [업데이트](https://services.docs.unity.com/moderation/v1/#tag/Incidents/operation/PostIncident)합니다.
