Skip to content

Change the role of a staff account (admin/staff only; not owner; not self)

PATCH
/admin/v1/users/{id}/role
curl --request PATCH \
--url https://your-store.example.com/admin/v1/users/example/role \
--header 'Content-Type: application/json' \
--data '{ "role": "admin" }'
id
required
string
Media type application/json
object
role
required
string
Allowed values: admin staff