changeRole( )


Developer Preview

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.

Method Declaration
Copy
Method Parameters
accountIdstringRequired

Contributor's account ID.


optionsChangeRoleOptionsRequired

Filter options. The newRoles field must be passed.

Returns
Return Type:Promise<ChangeContributorRoleResponse>
Did this help?