Skip to content

Update member

PATCH/admin/v1/stores/{store_id}/members/{user_id}
  • staff:manage

Give a member another role. and every permission involved.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • user_idstringrequired

    Member's user ID

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • role_idstringrequired

    TypeID with the role prefix.

Returns

200 Updated member.

Errors

  • 403forbiddenMissing permission, or your own role.
  • 404not_foundNot a member of this store.
  • 409The owner has no role (owner_protected).
  • 422validation_failedUnknown or ungrantable role.