Documentation

AddFriend

Adds the Friend user to the friendlist of the user with PlayFabId. At least one of FriendPlayFabId,FriendUsername,FriendEmail, or FriendTitleDisplayName should be initialized.

Request Details

AddFriendRequest
Request Properties
FriendEmail String

Email address of the user being added.

FriendPlayFabId String

The PlayFab identifier of the user being added.

FriendTitleDisplayName String

Title-specific display name of the user to being added.

FriendUsername String

The PlayFab username of the user being added

PlayFabId (required) String

PlayFab identifier of the player to add a new friend.

POST https://{{TitleID}}.playfabapi.com/Server/AddFriend
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "PlayFabId": "10931252888739651331",
  "FriendPlayFabId": "20394883"
}
        

Response Details

EmptyResponse
Result Properties

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8


Authentication

SecretKey

Possible Error Codes

Name Code
AccountNotFound 1001
InvalidPublisherId 1126
UsersAlreadyFriends 1183