Assigns a specific role to group members.
Calling this method overrides the group member's current role.value
.
Notes:
Group ID.
Member IDs. Limited to 100 member IDs. See the Members API for details.
Role to assign.
Group ID.
Member IDs. Limited to 100 member IDs. See the Members API for details.
Assigned role.
curl -X POST \
https://wixapis.com/social-groups/v2/groups/8a258cf5-49f3-41dc-b320-65ec2598315b/roles/assign \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Authorization: <AUTH>'
-d '{
"siteMemberIds": [
"e6674661-f294-4f1f-9f22-bc11fa8164e7"
],
"role": {
"value": "ADMIN"
}
}'
{
"groupId": "8a258cf5-49f3-41dc-b320-65ec2598315b",
"siteMemberIds": ["e6674661-f294-4f1f-9f22-bc11fa8164e7"],
"role": {
"value": "ADMIN"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.