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

# PFAccountManagementBanRequest

> PFAccountManagementBanRequest data model. Represents a single ban request.

PFAccountManagementBanRequest data model. Represents a single ban request.

## Syntax

```cpp theme={null}
typedef struct PFAccountManagementBanRequest {  
    uint32_t const* durationInHours;  
    const char* IPAddress;  
    const char* playFabId;  
    const char* reason;  
    PFAccountManagementUserFamilyType const* userFamilyType;  
} PFAccountManagementBanRequest;  
```

### Members

**`durationInHours`**   uint32\_t const\*\
*may be nullptr*

(Optional) The duration in hours for the ban. Leave this blank for a permanent ban.

**`IPAddress`**   const char\*\
*is null-terminated*

(Optional) IP address to be banned. May affect multiple players.

**`playFabId`**   const char\*\
*is null-terminated*

Unique PlayFab assigned ID of the user on whom the operation will be performed.

**`reason`**   const char\*\
*is null-terminated*

(Optional) The reason for this ban. Maximum 140 characters.

**`userFamilyType`**   [PFAccountManagementUserFamilyType](https://docs.xbox.com/services/playfab/api-references/c/pfaccountmanagementtypes/enums/pfaccountmanagementuserfamilytype.md) const\*\
*may be nullptr*

(Optional) The family type of the user that should be included in the ban if applicable. May affect multiple players.

## Requirements

**Header:** PFAccountManagementTypes.h

## See also

[PFAccountManagementTypes members](https://docs.xbox.com/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)


## Related topics

- [PFAccountManagementBanUsersRequest](https://docs.xbox.com/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementbanusersrequest.md)
- [Services C API overview - PFAccountManagementTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)
- [PFAccountManagementUpdateBanRequest](https://docs.xbox.com/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementupdatebanrequest.md)
- [PFAccountManagementRevokeBansRequest](https://docs.xbox.com/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementrevokebansrequest.md)
- [PFAccountManagementUpdateBansRequest](https://docs.xbox.com/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementupdatebansrequest.md)
