The Contributors API allows account managers to retrieve a list of contributors for a given site and to change the contributors' roles for the site. This API enables you to manage contributor roles and permissions, so you can ensure that your customers have the appropriate access to their Wix sites.
This API is designed to manage customer access to a single site and is not intended for managing company employee access to sites.
For more information about site collaborators, including a list of available roles, see Roles & Permissions: Overview and Roles & Permissions: Information for Site Collaborators.
Contributor's metadata.
Whether the contributor account is a team account.
Date that the contributor joined the site.
Email address that received the invite.
Whether the contributor account is a client account.
Contributor's user ID.
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 API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a list of contributors for the specified site, given the provided filters.
You can only call this method when authenticated as a Wix app or Wix user identity.
List of site contributors.
curl -X GET \
'https://www.wixapis.com/roles-management/v2/contributors/query' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH>' \
-d '{
"filter": {
"policyIds": [
"6600344420111308827"
]
}
}'
{
"contributors": [
{
"accountId": "b1eb9bab-b71c-4a123-b84e-5b5b4c869e64",
"accountOwnerId": "b1eb9bab-b80c-4a123-b84e-5b5b4c869e00"
}
]
}