> ## 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.

# PFAccountManagementClientAddOrUpdateContactEmailAsync

> Adds or updates a contact email to the player's profile.

Adds or updates a contact email to the player's profile.

## Syntax

```cpp theme={null}
HRESULT PFAccountManagementClientAddOrUpdateContactEmailAsync(  
    PFEntityHandle entityHandle,  
    const PFAccountManagementAddOrUpdateContactEmailRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFAccountManagementAddOrUpdateContactEmailRequest\*](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementaddorupdatecontactemailrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Win32, Linux, and macOS. This API adds a contact email to the player's profile. If the player's profile already contains a contact email, it will update the contact email to the email address specified. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be one of global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFAccountManagement.h

## See also

[PFAccountManagement members](/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)


## Related topics

- [Services C API overview - PFAccountManagement.h](/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)
- [PFAccountManagementAddOrUpdateContactEmailRequest](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementaddorupdatecontactemailrequest.md)
- [PFAccountManagementClientRemoveContactEmailAsync](/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientremovecontactemailasync.md)
- [PFAccountManagementClientSendAccountRecoveryEmailAsync](/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientsendaccountrecoveryemailasync.md)
- [PFAccountManagementClientAddUsernamePasswordAsync](/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientaddusernamepasswordasync.md)
