This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Overrides all the roles of a contributor for the specified site.
Contributor's account ID.
New roles to assign to the contributor on the site.
New roles assigned to the contributor on the site.
curl -X PATCH \
'https://www.wixapis.com/roles-management/contributor/change/role' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"accountId": "fed9597b-00a1-4bd6-0000-aff2ec248e7a",
"newRoles": [
{
"roleId": "6600344420111308827",
}
]
}'
{
"newAssignedRoles": [
{
"roleId": "6600344420111308827",
"assignmentId": "7261756085891267597"
}
]
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.