createAccountAsCollaborator( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates a new Wix account with a user as the account owner and immediately assigns the account as a collaborator on a specified site with defined roles.

This method combines account creation, user registration, and site collaboration assignment in a single operation. The newly created account becomes a child account of the requesting account, establishing a parent-child relationship that allows for centralized management and inherited configurations like custom branding.

Important: This call requires an account level API key.

Method Declaration
Copy
Method Parameters
userUserRequired

User details for creating the new account owner. The user becomes the owner of the newly created account, which is then assigned as a collaborator on the specified site.


optionsCreateAccountAsCollaboratorOptionsRequired
Returns
Return Type:Promise<CreateAccountAsCollaboratorResponse>
Errors

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

Did this help?