Skip to main content

add_black

Description

  • Add blackUserID to the blacklist of ownerUserID, preventing blackUserID from sending messages to ownerUserID.

Request Method

  • post

Request URL

  • {API_ADDRESS}/friend/add_black
Header NameExample ValueOptionalTypeDescription
operationID1646445464564RequiredstringUsed for global traceability, recommended to use a timestamp for uniqueness in each request.
tokeneyJhbxxxx3XsRequiredstringAdmin token

Request Body Example

{
"ownerUserID": "11111111",
"blackUserID": "11111113",
"ex": "ex"
}
Field NameOptionalTypeDescription
ownerUserIDRequiredstringThe user adding to blacklist
blackUserIDRequiredstringThe user being blacklisted
exOptionalstringExtension field

Success Response Example

{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}

Success Response Parameters

Parameter NameTypeDescription
errCodeintError code, 0 means success
errMsgstringBrief error message, empty if successful
errDltstringDetailed error information, empty if successful

Failure Response Example

{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}

Failure Response Parameters

Parameter NameTypeDescription
errCodeintError code, refer to the global error code documentation
errMsgstringBrief error message
errDltstringDetailed error message