Invite To Group
Invites a player to join a group
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| EntityBlockedByGroup | 1357 |
| EntityIsAlreadyMember | 1359 |
| OutstandingApplicationAcceptedInstead | 1364 |
| RoleDoesNotExist | 1358 |
Authorizations
This API requires an Entity Session Token, available from the Entity GetEntityToken method.
Body
Invites a player to join a group, if they are not blocked by the group. An optional role can be provided to automatically assign the player to the role if they accept the invitation. By default, if the entity has an application to the group outstanding, this will accept the application instead and return an error indicating such, rather than creating a duplicate invitation to join that will need to be cleaned up later. Returns information about the new invitation or an error indicating an existing application to join was accepted.
Invites a player to join a group, if they are not blocked by the group. An optional role can be provided to automatically assign the player to the role if they accept the invitation. By default, if the entity has an application to the group outstanding, this will accept the application instead and return an error indicating such, rather than creating a duplicate invitation to join that will need to be cleaned up later. Returns information about the new invitation or an error indicating an existing application to join was accepted.
The entity to perform this action on.
The identifier of the group
Optional, default true. Automatically accept an application if one exists instead of creating an invitation
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
Optional. ID of an existing a role in the group to assign the user to. The group's default member role is used if this is not specified. Role IDs must be between 1 and 64 characters long.
