Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

addressSetDefault Mutation

Sets a default address for the given user.

Requires one of the following permissions:MANAGE_USERS

Triggers the following webhook events:

  • CUSTOMER_UPDATED (async): A customer was updated.

Applied directives

@webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED], syncEvents: [])
addressSetDefault(addressId: ID!, type: AddressTypeEnum!, userId: ID!): AddressSetDefault

Returns

AddressSetDefault

Show return type
type AddressSetDefault {
  user: User
  accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [AccountError!]!
}

Arguments

addressId

addressId · ID!

ID of the address.

type

type · AddressTypeEnum!

The type of address.

userId

userId · ID!

ID of the user to change the address for.


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?