Groups - Update Group
Updates non-membership data about a group.
POST https://titleId.playfabapi.com/Group/UpdateGroup
Request Header
Name | Required | Type | Description |
---|---|---|---|
X-EntityToken | True |
string |
This API requires an Entity Session Token, available from the Entity GetEntityToken method. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
Group | True |
The identifier of the group |
|
AdminRoleId |
string |
Optional: the ID of an existing role to set as the new administrator role for the group |
|
CustomTags |
object |
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). |
|
ExpectedProfileVersion |
number |
Optional field used for concurrency control. By specifying the previously returned value of ProfileVersion from the GetGroup API, you can ensure that the group data update will only be performed if the group has not been updated by any other clients since the version you last loaded. |
|
GroupName |
string |
Optional: the new name of the group |
|
MemberRoleId |
string |
Optional: the ID of an existing role to set as the new member role for the group |
Responses
Name | Type | Description |
---|---|---|
200 OK | ||
400 Bad Request |
This is the outer wrapper for all responses with errors |
Security
X-EntityToken
This API requires an Entity Session Token, available from the Entity GetEntityToken method.
Type:
apiKey
In:
header
Definitions
Name | Description |
---|---|
Api |
The basic wrapper around every failed API response |
Entity |
Combined entity type and ID structure which uniquely identifies a single entity. |
Operation |
|
Update |
Updates data about a group, such as the name or default member role. Returns information about whether the update was successful. Only title claimants may modify the administration role for a group. |
Update |
ApiErrorWrapper
The basic wrapper around every failed API response
Name | Type | Description |
---|---|---|
code |
integer |
Numerical HTTP code |
error |
string |
Playfab error code |
errorCode |
integer |
Numerical PlayFab error code |
errorDetails |
object |
Detailed description of individual issues with the request object |
errorMessage |
string |
Description for the PlayFab errorCode |
status |
string |
String HTTP code |
EntityKey
Combined entity type and ID structure which uniquely identifies a single entity.
Name | Type | Description |
---|---|---|
Id |
string |
Unique ID of the entity. |
Type |
string |
Entity type. See https://docs.microsoft.com/gaming/playfab/features/data/entities/available-built-in-entity-types |
OperationTypes
Name | Type | Description |
---|---|---|
Created |
string |
|
Deleted |
string |
|
None |
string |
|
Updated |
string |
UpdateGroupRequest
Updates data about a group, such as the name or default member role. Returns information about whether the update was successful. Only title claimants may modify the administration role for a group.
Name | Type | Description |
---|---|---|
AdminRoleId |
string |
Optional: the ID of an existing role to set as the new administrator role for the group |
CustomTags |
object |
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). |
ExpectedProfileVersion |
number |
Optional field used for concurrency control. By specifying the previously returned value of ProfileVersion from the GetGroup API, you can ensure that the group data update will only be performed if the group has not been updated by any other clients since the version you last loaded. |
Group |
The identifier of the group |
|
GroupName |
string |
Optional: the new name of the group |
MemberRoleId |
string |
Optional: the ID of an existing role to set as the new member role for the group |
UpdateGroupResponse
Name | Type | Description |
---|---|---|
OperationReason |
string |
Optional reason to explain why the operation was the result that it was. |
ProfileVersion |
number |
New version of the group data. |
SetResult |
Indicates which operation was completed, either Created, Updated, Deleted or None. |
Error Codes
Name | Code |
---|---|
GroupNameNotAvailable | 1368 |
RoleDoesNotExist | 1358 |