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

# 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\*<br />*may be nullptr*

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

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

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

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

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

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

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

**`userFamilyType`**   [PFAccountManagementUserFamilyType](/services/playfab/api-references/c/pfaccountmanagementtypes/enums/pfaccountmanagementuserfamilytype) const\*<br />*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](/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members)


## Related topics

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