{shopId} is checked against that exact shop; a resource identifier such as a product or server must belong to it as well.
Role presets
Legacy
view, edit, and full roles map to viewer, manager, and admin. Individual customPermissions can extend a role.
Add an existing user
The endpoint requiresteam:manage and accepts a Bearer session or a suitably scoped shop key.
Access-control responses
- invalid
shopIdformat →400; - missing or invalid authentication →
401; - valid identity but insufficient scope or a different shop →
403; - missing shop or resource inside that shop →
404.