Xsolla-logo
  • 文档
  • 创建帐户

更新用户的好友

post/users/me/relationships

更新认证用户的好友列表。

SecurityBearer
Request
Request Body schema: application/json
action
string

操作类型。可以是:

  • friend_request_add,发送好友请求;
  • friend_request_cancel,取消已发送的好友请求;
  • friend_request_approve,确认好友请求;
  • friend_request_deny,取消收到的好友请求;
  • friend_remove,从好友列表中删除用户;
  • block,阻止用户;
  • unblock,取消阻止用户。
Enum: "friend_request_add" "friend_request_cancel" "friend_request_approve" "friend_request_deny" "friend_remove" "block" "unblock"
user
string <uuid>

要更改与其的关系的用户ID。

Responses
204

无内容

400

错误的请求

401

被禁止

403

被禁止

404

未找到

Request samples
application/json
{
  • "action": "friend_request_add",
  • "user": "00000000-0000-0000-0000-000000000000"
}
Response samples
application/json
{
  • "error": {
    }
}