Update role
PATCH
/ admin/ v1/ stores/ {store_id}/ roles/ {role_id}Rename a role or change its permissions. Members holding it are affected immediately.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.role_idstringrequiredThe role's ID, like
role_01k8qs5s….
Headers
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
namestring · or nullpermissionsarray of strings · or nullReplaces the role's permissions; members get the change immediately.
Returns
200 Updated role.
Errors
- 403
forbiddenMissingstaff:manage, or the role has permissions you lack. - 404
not_foundNo such role in this store. - 409Name taken.
- 422
validation_failedValidation failed.