Sample Flow

This article presents a possible use case and corresponding sample flow that you can support. This can be a helpful jumping off point as you plan your implementation.

Add a permission to your app

To add a permission to your app, such as the Manage Events permission:

  1. Find your app's ID on the Home page in the app's dashboard.

  2. In the API reference, locate the method your app needs and identify the required permission.

  3. Find the ID of the required permission by searching for it on the Permissions page in the app's dashboard.

  4. Call the Create App Permission method with the app ID and permission ID:

Copy

The method returns a response such as:

Copy

Now, when users install your app on a site, they are asked to grant it the Manage Events permission.

Note: It might take up to 5 minutes for the permission to update across the Wix ecosystem.

Did this help?