사용자 차단
Endpoint
[POST] API URL 정보
Description
Description
본 API는 상담 메시지 수신 으로 받은 데이터를 사용하여 동작하는 API입니다.
Request (Json)
Header
| Field Name | Type | Required | Description |
|---|---|---|---|
| Content-type | String | Y | application/json |
| HT-Client-Id | String | Y | 고객센터에서 발급 받은 key |
| HT-Client-Secret | String | Y | 고객센터에서 발급 받은 token |
Body
| Field Name | Type (Length) | Required | Description | Default |
|---|---|---|---|---|
| user_key | String (20) | Y | 사용자 키 | |
| sender_key | String (40) | Y | 발신프로필 키 |
Example
REST API Sample
curl --location --request POST 'https://patch-kakao-api.happytalk.io/v1/profile/user/block' \
--header 'Content-Type: application/json' \
--header 'HT-Client-Id: 고객센터에서 발급받은 client-id' \
--header 'HT-Client-Secret: 고객센터에서 발급받은 client-secret' \
--data-raw '{
"user_key" : "수신한 사용자 키",
"sender_key" : "등록된 프로필 sender_key (발신 프로필 등록시 생성)"
}'
curl --location --request POST 'https://kakao-api.happytalk.io/v1/profile/user/block' \
--header 'Content-Type: application/json' \
--header 'HT-Client-Id: 고객센터에서 발급받은 client-id' \
--header 'HT-Client-Secret: 고객센터에서 발급받은 client-secret' \
--data-raw '{
"user_key" : "수신한 사용자 키",
"sender_key" : "등록된 프로필 sender_key (발신 프로필 등록시 생성)"
}'
Response (Json)
Parameter
| Field Name | Type | Description |
|---|---|---|
| code | String | 결과 코드 |