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

# PFGroupsInviteToGroupResponse

> PFGroupsInviteToGroupResponse data model. Describes an invitation to a group.

PFGroupsInviteToGroupResponse data model. Describes an invitation to a group.

## Syntax

```cpp theme={null}
typedef struct PFGroupsInviteToGroupResponse {  
    time_t expires;  
    PFEntityKey const* group;  
    PFGroupsEntityWithLineage const* invitedByEntity;  
    PFGroupsEntityWithLineage const* invitedEntity;  
    const char* roleId;  
} PFGroupsInviteToGroupResponse;  
```

### Members

**`expires`**   time\_t

When the invitation will expire and be deleted.

**`group`**   [PFEntityKey](https://docs.xbox.com/services/playfab/api-references/c/pftypes/structs/pfentitykey-c.md) const\*\
*may be nullptr*

(Optional) The group that the entity invited to.

**`invitedByEntity`**   [PFGroupsEntityWithLineage](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsentitywithlineage.md) const\*\
*may be nullptr*

(Optional) The entity that created the invitation.

**`invitedEntity`**   [PFGroupsEntityWithLineage](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsentitywithlineage.md) const\*\
*may be nullptr*

(Optional) The entity that is invited.

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

(Optional) ID of the role in the group to assign the user to.

## Requirements

**Header:** PFGroupsTypes.h

## See also

[PFGroupsTypes members](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)


## Related topics

- [PFGroupsInviteToGroupGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfgroups/functions/pfgroupsinvitetogroupgetresult.md)
- [Services C API overview - PFGroupsTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [Invite To Group](https://docs.xbox.com/services/playfab/api-references/rest/groups/groups/invite-to-group.md)
- [PFGroupsInviteToGroupRequest](https://docs.xbox.com/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsinvitetogrouprequest.md)
- [PFGroupsInviteToGroupAsync](https://docs.xbox.com/services/playfab/api-references/c/pfgroups/functions/pfgroupsinvitetogroupasync.md)
