> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/001_user/003_address/002__update_user_address.md).

# Update User Address

GraphQL endpoint: `/user`

Updates an existing address for the user. You can modify the address details, types, and visibility settings.

## Query

```graphql
mutation (
  $id: ID!
  $street: String
  $city: String
  $zipCode: String
  $state: String
  $country: String
  $types: [UserAddressType!]
  $visibility: [UserVisibilityType!]
) {
  updateUserAddress (
    id: $id
    street: $street
    city: $city
    zipCode: $zipCode
    state: $state
    country: $country
    types: $types
    visibility: $visibility
  ) {
    id
    city
    country
    state
    street
    zipCode
    types
    visibility
  }
}

```

## Variables

```json
{
  "id": "00000000-0000-4000-8000-000000000001",
  "types": [
    "HOME"
  ],
  "visibility": [
    "FAMILY"
  ]
}
```

## Response

```json
{
  "data": {
    "updateUserAddress": {
      "city": "test city",
      "country": "United States",
      "id": "00000000-0000-4000-8000-000000000001",
      "state": "Alabama",
      "street": "test street 1",
      "types": [
        "HOME"
      ],
      "visibility": [
        "FAMILY"
      ],
      "zipCode": "12345"
    }
  }
}
```
