You can update customer accounts using the [Customer Account API](/docs/api/customer).
This guide covers how to update a customer, and accomplish common tasks like creating, updating and deleting an address on a customer.
## Requirements
- You've completed the [Getting started with the Customer Account API](/docs/storefronts/headless/building-with-the-customer-account-api/getting-started) guide.
## Step 1: Update a customer
Customers are automatically created if needed when you call the API.
You update a customer using the [`customerUpdate`](/docs/api/customer/unstable/mutations/customerUpdate) mutation. You can use this mutation to update the profile of a customer on your storefront.
## Step 2: Create an address
The following example shows how to use the [`customerAddressCreate`](/docs/api/customer/unstable/mutations/customerAddressCreate) mutation to create a new address for a customer:
## Step 3: Update an address
The following example shows how to use the [`customerAddressUpdate`](/docs/api/customer/unstable/mutations/customerAddressUpdate) mutation to update an existing address for a customer:
## Step 4: Delete an address
The following example shows how to use the [`customerAddressDelete`](/docs/api/customer/unstable/mutations/customerAddressDelete) mutation to create a new address for a customer:
## Next steps
- Learn more about the [Customer Account API](/docs/api/customer).