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

# PFAccountManagementUpdateBanRequest

> PFAccountManagementUpdateBanRequest data model. Represents a single update ban request.

PFAccountManagementUpdateBanRequest data model. Represents a single update ban request.

## Syntax

```cpp theme={null}
typedef struct PFAccountManagementUpdateBanRequest {  
    bool const* active;  
    const char* banId;  
    time_t const* expires;  
    const char* IPAddress;  
    bool const* permanent;  
    const char* reason;  
    PFAccountManagementUserFamilyType const* userFamilyType;  
} PFAccountManagementUpdateBanRequest;  
```

### Members

**`active`**   bool const\*<br />*may be nullptr*

(Optional) The updated active state for the ban. Null for no change.

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

The id of the ban to be updated.

**`expires`**   time\_t const\*<br />*may be nullptr*

(Optional) The updated expiration date for the ban. Null for no change.

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

(Optional) The updated IP address for the ban. Null for no change.

**`permanent`**   bool const\*<br />*may be nullptr*

(Optional) Whether to make this ban permanent. Set to true to make this ban permanent. This will not modify Active state.

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

(Optional) The updated reason for the ban to be updated. Maximum 140 characters. Null for no change.

**`userFamilyType`**   [PFAccountManagementUserFamilyType](/services/playfab/api-references/c/pfaccountmanagementtypes/enums/pfaccountmanagementuserfamilytype) const\*<br />*may be nullptr*

(Optional) The updated family type of the user that should be included in the ban. Null for no change.

## Requirements

**Header:** PFAccountManagementTypes.h

## See also

[PFAccountManagementTypes members](/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members)


## Related topics

- [PFAccountManagementUpdateBansRequest](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementupdatebansrequest.md)
- [Services C API overview - PFAccountManagementTypes.h](/services/playfab/api-references/c/pfaccountmanagementtypes/pfaccountmanagementtypes_members.md)
- [PFAccountManagementServerUpdateBansAsync](/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementserverupdatebansasync.md)
- [PFAccountManagementRevokeBansRequest](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementrevokebansrequest.md)
- [PFAccountManagementRevokeAllBansForUserRequest](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementrevokeallbansforuserrequest.md)
