14.채팅 금지어 설정

애플리케이션별 채팅 금지어를 설정한다. 금지 형태는 2가지를 제공한다. 대시보드의 Settings 페이지에서 설정이 가능하다.

  • 1.Replace: 금지어가 입력이 되었을 때 *(asterisk) 로 대체한다.
  • 2.Drop: 메시지를 보내지 않는다.

HTTP 요청

PATCH /api/2/applications/{appKey}/profanity_words

경로 변수

타입필수여부설명
app_keystringtrue애플리케이션의 키

요청 본문

타입필수여부설명
filter_methodnumbertrue금지 형태. 1: Replace, 2: Drop
wordsstring[]true금지어 리스트

응답 본문

없음

요청 예

설명
GEThttps://api.flipflop.tv/api/2/applications/SAMPLE_APP/videos/100000?type=1
HeaderAuthorization: Bearer {access_token}
Accept: application/json
Payload{"filter_method": 1,"words": ["가","나","다"]

응답 예

Http Status설명
200
400{"code": 40000, "message": "Invalid user_id: valid value of 'user_id' is range 1 to 80."}