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

# PFGroupsApplyToGroupRequest

> PFGroupsApplyToGroupRequest data model. Creates an application to join a group. Calling this while a group application already exists will return the same.

PFGroupsApplyToGroupRequest data model. Creates an application to join a group. Calling this while a group application already exists will return the same application instead of an error and will not refresh the time before the application expires. By default, if the entity has an invitation to join the group outstanding, this will accept the invitation to join the group instead and return an error indicating such, rather than creating a duplicate application to join that will need to be cleaned up later. Returns information about the application or an error indicating an invitation was accepted instead.

## Syntax

```cpp theme={null}
typedef struct PFGroupsApplyToGroupRequest {  
    bool const* autoAcceptOutstandingInvite;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFEntityKey const* entity;  
    PFEntityKey const* group;  
} PFGroupsApplyToGroupRequest;  
```

### Members

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

(Optional) Optional, default true. Automatically accept an outstanding invitation if one exists instead of creating an application.

**`customTags`**   [PFStringDictionaryEntry](/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry) const\*<br />*may be nullptr*

(Optional) The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

**`customTagsCount`**   uint32\_t

Count of customTags

**`entity`**   [PFEntityKey](/services/playfab/api-references/c/pftypes/structs/pfentitykey-c) const\*<br />*may be nullptr*

(Optional) The optional entity to perform this action on. Defaults to the currently logged in entity.

**`group`**   [PFEntityKey](/services/playfab/api-references/c/pftypes/structs/pfentitykey-c) const\*

The identifier of the group.

## Requirements

**Header:** PFGroupsTypes.h

## See also

[PFGroupsTypes members](/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members)


## Related topics

- [PFGroupsApplyToGroupAsync](/services/playfab/api-references/c/pfgroups/functions/pfgroupsapplytogroupasync.md)
- [Services C API overview - PFGroupsTypes.h](/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [PFGroupsApplyToGroupResponse](/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsapplytogroupresponse.md)
- [PFGroupsApplyToGroupGetResult](/services/playfab/api-references/c/pfgroups/functions/pfgroupsapplytogroupgetresult.md)
- [PFGroupsApplyToGroupGetResultSize](/services/playfab/api-references/c/pfgroups/functions/pfgroupsapplytogroupgetresultsize.md)
