How to set the "plone.schemaeditor.ManageSchemata" permission?

I'm trying to access @controlpanels/dexterity-types via Plone REST-API without success.

Now I've found the following in the documentation:

Dexterity Content Types require the plone.schemaeditor.ManageSchemata permission.

How can I set the Plone.schemaeditor.ManageSchemata permission?

I've tried to check the permissions for the user under http://127.0.0.1:8080/Plone/manage_changePermissions. But I still can't access the @controlpanels/dexterity-types.

$ curl \
    -i \
    -X GET \
    http://localhost:8080/Plone/@controlpanels/dexterity-types \
    -H "Accept: application/json" \
    --user username:secret

HTTP/1.1 404 Not Found
Content-Length: 4
Content-Type: application/json
Date: Tue, 25 Jan 2022 18:26:55 GMT
Server: waitress
Via: waitress
X-Frame-Options: SAMEORIGIN
X-Powered-By: Zope (www.zope.org), Python (www.python.org)

null

I'm using Plone 5.2.6 with Python 3.9 on debian 11. Installed with the UnifiedInstaller

Just a sanity check, did you activate the plone.restapi addon in the Addons control panel?

Thanks a lot!

I didn't know that this was necessary.

For future uses I document here how to install the addon plone.restapi via plone.restapi :slight_smile:

$ curl \
    -i \
    -X POST \
    http://localhost:8080/Plone/@addons/plone.restapi/install \
    -H "Accept: application/json" \
    --user username:secret

It is, because the plone.restapi adapters are registered on the IPloneRestapiLayer