Documentation

SetFriendTags

Updates the tag list for a specified user in the friend list of the local user

Request Details

This operation is not additive. It will completely replace the tag list for the specified user. Please note that only users in the PlayFab friends list can be assigned tags. Attempting to set a tag on a friend only included in the friends list from a social site integration (such as Facebook or Steam) will return the AccountNotFound error.

SetFriendTagsRequest
Request Properties
FriendPlayFabId (required) String

PlayFab identifier of the friend account to which the tag(s) should be applied.

Tags (required) List<String>

Array of tags to set on the friend account.

POST https://{{TitleID}}.playfabapi.com/Client/SetFriendTags
    Content-Type: application/json
    X-Authentication: <user_session_ticket_value>
{
  "FriendPlayFabId": "29837799",
  "Tags": [
    "great sniper",
    "no good at melee"
  ]
}
        

Response Details

SetFriendTagsResult
Result Properties

Sample Response

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


Authentication

SessionTicket

Possible Error Codes

Name Code
AccountNotFound 1001