> ## Documentation Index
> Fetch the complete documentation index at: https://docs.slant.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Update an address

> Update an existing address for a person



## OpenAPI

````yaml /api-reference/openapi.yaml patch /v1/people/{person_id}/addresses/{id}
openapi: 3.0.1
info:
  title: Slant Public API V1
  version: v1
  description: Public API for creating and managing resources in Slant
  contact:
    name: Slant API Support
    email: api@slant.com
servers:
  - url: https://api.slant.app
security:
  - bearer: []
paths:
  /v1/people/{person_id}/addresses/{id}:
    parameters:
      - name: person_id
        in: path
        description: The person ID
        required: true
        example: abc123xyz
        schema:
          type: string
      - name: id
        in: path
        description: The address ID
        required: true
        example: abc123xyz
        schema:
          type: string
    patch:
      tags:
        - People
      summary: Update an address
      description: Update an existing address for a person
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                line1:
                  type: string
                  example: 456 Oak Ave
                line2:
                  type: string
                  example: Apt 2B
                city:
                  type: string
                  example: Boulder
                state:
                  type: string
                  example: CO
                zip:
                  type: string
                  example: '80301'
                country_code:
                  type: string
                  example: US
                address_type:
                  type: string
                  enum:
                    - home
                    - work
                    - mailing
                    - other
                  example: work
                is_primary:
                  type: boolean
                  example: true
        required: true
      responses:
        '200':
          description: address updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  person_id:
                    type: string
                  line1:
                    type: string
                  line2:
                    type: string
                  city:
                    type: string
                  state:
                    type: string
                  zip:
                    type: string
                  country_code:
                    type: string
                    nullable: true
                  address_type:
                    type: string
                  is_primary:
                    type: boolean
        '400':
          description: bad request - invalid JSON
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - detail
                properties:
                  error:
                    type: string
                    description: Error code
                    enum:
                      - invalid_json
                  detail:
                    oneOf:
                      - type: string
                        description: Human-readable error description
                      - type: array
                        items:
                          type: string
                        description: Array of validation error messages
        '401':
          description: unauthorized - missing or invalid token
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - detail
                properties:
                  error:
                    type: string
                    description: Error code
                    enum:
                      - token_missing
                      - token_invalid
                  detail:
                    oneOf:
                      - type: string
                        description: Human-readable error description
                      - type: array
                        items:
                          type: string
                        description: Array of validation error messages
        '403':
          description: forbidden
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: OAuth
      description: OAuth 2.0 Bearer Token from Clerk authentication

````