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

# PFGroupsCreateGroupRoleRequest

> Modelo de datos de PFGroupsCreateGroupRoleRequest. Crea un nuevo rol dentro de un grupo existente, sin miembros. Tanto el identificador del rol como el nombre del rol deben ser únicos dentro.

Modelo de datos de PFGroupsCreateGroupRoleRequest. Crea un nuevo rol dentro de un grupo existente, sin miembros. Tanto el identificador del rol como el nombre del rol deben ser únicos dentro del grupo, pero el nombre puede ser igual que el identificador. El identificador del rol se establece en el momento de la creación y no se puede cambiar. Devuelve información sobre el rol que se creó.

## Sintaxis

```cpp theme={null}
typedef struct PFGroupsCreateGroupRoleRequest {  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFEntityKey const* group;  
    const char* roleId;  
    const char* roleName;  
} PFGroupsCreateGroupRoleRequest;  
```

### Miembros

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

(Opcional) Etiquetas personalizadas opcionales asociadas a la solicitud (por ejemplo, número de compilación, identificadores de seguimiento externos, etc.).

**`customTagsCount`**   uint32\_t

Recuento de customTags

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

Identificador del grupo.

**`roleId`**   const char\*<br />*is null-terminated*

Identificador del rol. Debe ser único dentro del grupo y no se puede cambiar. Los identificadores de rol deben tener entre 1 y 64 caracteres y están restringidos a a-Z, A-Z, 0-9, '(', ')', '\_', '-' y '.'.

**`roleName`**   const char\*<br />*is null-terminated*

Nombre del rol. Debe ser único dentro del grupo y se puede cambiar más adelante. Los nombres de rol deben tener entre 1 y 100 caracteres.

## Requisitos

**Encabezado:** PFGroupsTypes.h

## Consulte también

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


## Related topics

- [PFGroupsCreateRoleAsync](/es/services/playfab/api-references/c/pfgroups/functions/pfgroupscreateroleasync.md)
- [Información general de la API de C de Services - PFGroupsTypes.h](/es/services/playfab/api-references/c/pfgroupstypes/pfgroupstypes_members.md)
- [PFGroupsCreateGroupRequest](/es/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupscreategrouprequest.md)
- [PFGroupsCreateGroupRoleResponse](/es/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupscreategrouproleresponse.md)
- [PFGroupsUpdateGroupRoleRequest](/es/services/playfab/api-references/c/pfgroupstypes/structs/pfgroupsupdategrouprolerequest.md)
