Groups
Assign Role Group Membership
Changed onAssigns a specific role to a user within a group. If the user already holds the specified role, no action is taken.
post/cloud/v2/groups/{group_id}/memberships/{membership_id}:assignRole
Request
- Base URLhttps://apis.roblox.com
- URLhttps://apis.roblox.com/cloud/v2/groups/{group_id}/memberships/{membership_id}:assignRole
- Auth
- API key in header x-api-key
- or OAuth 2Authorization code: https://apis.roblox.com/oauth/v1/authorizeToken URL: https://apis.roblox.com/oauth/v1/token scopes: group:write
Path parameters
group_idstring required
The group ID.
membership_idstring required
The membership ID.
Request body
Example request
{
"role": "groups/123/roles/456"
}Response
OK
Example response
{
"path": "groups/123/memberships/123",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"user": "users/21557",
"role": "groups/7/roles/99513316"
}Changes
- info
the security scope
group:writewas added to the endpoint's security schemeroblox-oauth2
- info