Create Role
Creates a new group role.
Error codes
This operation may return the following PlayFab errors:
| Error | Code |
|---|---|
| DuplicateRoleId | 1360 |
| RoleNameNotAvailable | 1367 |
Authorizations
This API requires an Entity Session Token, available from the Entity GetEntityToken method.
Body
Creates a new role within an existing group, with no members. Both the role ID and role name must be unique within the group, but the name can be the same as the ID. The role ID is set at creation and cannot be changed. Returns information about the role that was created.
Creates a new role within an existing group, with no members. Both the role ID and role name must be unique within the group, but the name can be the same as the ID. The role ID is set at creation and cannot be changed. Returns information about the role that was created.
The identifier of the group
The ID of the role. This must be unique within the group and cannot be changed. Role IDs must be between 1 and 64 characters long and are restricted to a-Z, A-Z, 0-9, '(', ')', '_', '-' and '.'.
The name of the role. This must be unique within the group and can be changed later. Role names must be between 1 and 100 characters long
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
