Skip to content

businessUnitAddressUpdate

Mutationin Business units

Update an existing address in a business unit

Arguments

ArgumentTypeDescription
businessUnitIdID!
addressIdID!
addressAddressInput!

Returns

BusinessUnitAddressUpdateResponse!

FieldTypeDescription
businessUnitBusinessUnitUpdated business unit information with modified address
businessUnitErrors[BusinessUnitAddressUpdateError!]Error details if address update failed

Example

mutation {
businessUnitAddressUpdate(
businessUnitId: "bu-123"
addressId: "addr-456"
address: {
givenName: "Updated Business"
familyName: "Contact"
streetName: "New Business Street"
streetNumber: "200"
city: "Rotterdam"
postalCode: "2000BB"
country: "NL"
}
) {
businessUnit {
id
addresses {
items {
id
givenName
familyName
city
}
}
}
businessUnitErrors {
... on ValidationError {
message
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccNot resolved

Used by

The storefront packages that send it, in these GraphQL documents: