Admin API / Mutations

updateMemberRole

Changes a member's role. Requires the ADMIN role or higher and a role above the member's stored role and above the new role. OWNER is never accepted. The member can have any status. A request for the current role succeeds without changes. A change to MEMBER deletes the member's listings, except listings with a running timed auction, resolves the open reports about the member and the deleted listings, and removes the member from store staff. With running timed auctions and no confirmRunningAuctions: true, a change to MEMBER returns MemberHasRunningAuctionsError and changes nothing. For an ACTIVE member, a change from below SELLER to SELLER or higher takes a seat of the plan's seller limit, and a change to ADMIN a seat of the admin limit; with no free seat the call returns SellerLimitReachedError or AdminLimitReachedError and changes nothing. In a store with subscription tiers, a change to or from ADMIN returns RoleChangeNeedsDashboardError and changes nothing.

Requires a client key with one of these scopes: admin:members:writeRequires this member role or higher: ADMIN
updateMemberRole(
  input: UpdateMemberRoleInput!
): UpdateMemberRolePayload!

Arguments

ArgumentTypeDescription
inputUpdateMemberRoleInput!The member and the new role.

Return type

UpdateMemberRolePayload!