Spree Admin SDK
Create a role
Creates a staff role. permissions holds catalog keys (see GET /admin/permissions); a caller may only grant keys they effectively hold.
Required scope: write_staff (for API-key authentication).
POST
Spree Admin SDK
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Body
application/json
Unique role name, the machine identifier shown capitalized in the dashboard.
Example:
"order_manager"
Example:
"Handles daily orders"
Permission keys (read_orders, write_products, ...) from the permissions endpoint. You can only grant keys you hold yourself.
Example:
Response
role created

