Skip to main content

delete_friend

Description

  • Remove friendUserID from ownerUserID's friend list unilaterally.

Request Method

  • post

Request URL

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

Request Body Example

{
"ownerUserID": "11111111",
"friendUserID": "11111113"
}
Field NameOptionalTypeDescription
ownerUserIDRequiredstringUser removing the friend
friendUserIDRequiredstringFriend to be deleted

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 message, 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