Spree Admin SDK
Update a role
Updates a role name, description or permissions. The admin role and host-locked roles (mutable: false) reject changes.
Required scope: write_staff (for API-key authentication).
PATCH
Spree Admin SDK
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Path Parameters
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
200 - application/json
role updated

