Extend an Existing Object

Schema plugins are backend extensions. Like other extensions in your app, they are added under the Extensions page in your app's dashboard.

Important: Once you create a schema plugin extension, you must get your app approved before you can test it. Unapproved apps can't read or write schema plugin fields.

To add a schema plugin to an app's API object, do the following:

  1. Select an app from the Custom Apps page in your Wix Studio workspace.

  2. Go to Extensions, and click + Create Extension.

  3. Search for extended fields in the search bar. Choose the object you want to extend and click Create.

  4. If this is the first time you're adding a schema plugin to the app, you'll be prompted to create a namespace for the app. This namespace is used when reading and writing any schema plugin fields created for the app. Once you save the namespace, it can't be changed.

  5. Use the JSON Editor to define your schema plugin as a JSON Schema. The editor's linter indicates if there are any errors in the JSON Schema.

  6. Once your schema plugin is defined, click Save.

    Important: Once you add a schema plugin to an app, it can't be removed. You can archive the plugin fields to prevent them from being read or written.

Your app now has a schema plugin extension. You can return to the JSON editor to make non-breaking changes to the schema.

Note: To test your schema plugin, first get your app approved.

Did this help?