# Update Address

`lawmatics_update-address` · Lawmatics MCP tool · Addresses

Update an existing address in Lawmatics by ID. Returns a `relationships` envelope of {id,type} pointers to the owning record (addressable) and any associated locations.

## Input

- **addressId** `string` (required, pattern: ^\d+$) — ID of the address to update; a numeric string
- **addressType** `string` — Address label (e.g. Home, Work, Mailing)
- **street** `string` — Street address line 1
- **street2** `string` — Street address line 2 (apt, suite, etc.)
- **city** `string` — City
- **state** `string` — State or province
- **postalCode** `string` — Postal/ZIP code
- **country** `string` — Country

## Output

- **id** `string` (required) — Unique ID of the address
- **addressType** `string` (required) — Address label (e.g. Home, Work, Mailing)
- **street** `string` (required) — Street address line 1
- **street2** `string | null` (required) — Street address line 2 (apt, suite, etc.); null if unset
- **city** `string | null` (required) — City; null if unset
- **state** `string | null` (required) — State or province; null if unset
- **postalCode** `string | null` (required) — Postal/ZIP code; null if unset
- **country** `string | null` (required) — Country; null if unset
- **fullAddress** `string | null` (required) — Full formatted single-line address; null if unset
- **createdAt** `string | null` (required) — When the address was created, as an ISO 8601 timestamp; null if unknown
- **updatedAt** `string | null` (required) — When the address was last updated, as an ISO 8601 timestamp; null if unknown
- **relationships** `object` (required) — JSON:API relationship pointers to related records as {id,type} stubs. Not materialized — follow a pointer by calling that resource's own get/find tool (e.g. an addressable of type 'contact' -> get-contact, type 'company' -> get-company).
  - **addressable** `object | null` (required) — Owning record pointer; null when unlinked. Polymorphic — the `type` is an open string (e.g. "contact", "company", "prospect" for a matter, "registerable_event", "firm"); resolve it by calling that record's own get/find tool
    - **id** `string` (required) — ID of the referenced Lawmatics record
    - **type** `string` (required) — JSON:API record class of the reference (e.g. "user", "contact", "prospect", "firm"); resolve it by calling that resource's own get/find tool — this pointer is not materialized
  - **locations** `array` (required) — Office/location pointers this address is associated with; empty if none
    - **[]** `object`
      - **id** `string` (required) — ID of the referenced Lawmatics record
      - **type** `string` (required) — JSON:API record class of the reference; resolve it by calling that resource's own tool
