> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFFriendsServerAddFriendRequest

> PFFriendsServerAddFriendRequest data model.

PFFriendsServerAddFriendRequest data model.

## Syntax

```cpp theme={null}
typedef struct PFFriendsServerAddFriendRequest {  
    const char* friendEmail;  
    const char* friendPlayFabId;  
    const char* friendTitleDisplayName;  
    const char* friendUsername;  
    const char* playFabId;  
} PFFriendsServerAddFriendRequest;  
```

### Members

**`friendEmail`**   const char\*<br />*is null-terminated*

(Optional) Email address of the user being added.

**`friendPlayFabId`**   const char\*<br />*is null-terminated*

(Optional) The PlayFab identifier of the user being added.

**`friendTitleDisplayName`**   const char\*<br />*is null-terminated*

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

**`friendUsername`**   const char\*<br />*is null-terminated*

(Optional) The PlayFab username of the user being added.

**`playFabId`**   const char\*<br />*is null-terminated*

PlayFab identifier of the player to add a new friend.

## Requirements

**Header:** PFFriendsTypes.h

## See also

[PFFriendsTypes members](/services/playfab/api-references/c/pffriendstypes/pffriendstypes_members)


## Related topics

- [PFFriendsServerAddFriendAsync](/services/playfab/api-references/c/pffriends/functions/pffriendsserveraddfriendasync.md)
- [Services C API overview - PFFriendsTypes.h](/services/playfab/api-references/c/pffriendstypes/pffriendstypes_members.md)
- [PFFriendsClientAddFriendRequest](/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientaddfriendrequest.md)
- [PFFriendsServerRemoveFriendRequest](/services/playfab/api-references/c/pffriendstypes/structs/pffriendsserverremovefriendrequest.md)
- [PFFriendsServerGetFriendsListRequest](/services/playfab/api-references/c/pffriendstypes/structs/pffriendsservergetfriendslistrequest.md)
