changeRole( )


Updates all of a contributor's roles for the specified site, overriding any existing roles.

Replaces all existing role assignments for the contributor with the roles specified in newRoles. To retrieve available roles, call Get Roles Info.

Method Declaration
Copy
Method Parameters
accountIdstringRequired

Contributor's account ID.


optionsChangeRoleOptionsRequired

Filter options. The newRoles field must be passed.

Returns
Return Type:Promise<ChangeContributorRoleResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?