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

# Update address

> Update an existing address

Also accepts `PATCH` with the same body.



## OpenAPI

````yaml /api-reference/openapi.json put /admin/api/v1/partners/partners/{partner_id}/addresses/{id}
openapi: 3.0.3
info:
  title: ARUKZ ERP API
  version: v1
  description: >-
    The REST API of ARUKZ ERP: sales, purchases, inventory, products, partners,
    accounts, projects and reference data. Every call acts as the user whose
    token it carries and sees only that user's company.
servers:
  - url: https://erp.arukz.com
    description: ARUKZ ERP (hosted)
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Sign in for a token and sign out.
  - name: Sales
    description: Quotations, sales orders and their lines, deliveries and invoices.
  - name: Purchases
    description: Purchase orders, receipts, bills, agreements and vendor price lists.
  - name: Inventory
    description: >-
      Warehouses, locations, lots, stock quantities, receipts, deliveries,
      transfers and scrap.
  - name: Products
    description: 'The product catalogue: categories, attributes, variants and packaging.'
  - name: Partners
    description: Customers, vendors, contacts, addresses and bank accounts.
  - name: Accounts
    description: >-
      Invoices, bills, credit notes, refunds, taxes, journals and the chart of
      accounts.
  - name: Projects
    description: Projects, tasks, stages and milestones.
  - name: Reference data
    description: Currencies and rates, banks, countries, states and units of measure.
paths:
  /admin/api/v1/partners/partners/{partner_id}/addresses/{id}:
    put:
      tags:
        - Partners
      summary: Update address
      description: |-
        Update an existing address

        Also accepts `PATCH` with the same body.
      operationId: partners-addresses-update-address
      parameters:
        - name: partner_id
          in: path
          required: true
          schema:
            type: integer
            description: The partner ID
            example: 1
          description: The partner ID
        - name: id
          in: path
          required: true
          schema:
            type: integer
            description: The address ID
            example: 1
          description: The address ID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                sub_type:
                  type: string
                  description: Address type.
                  enum:
                    - permanent
                    - present
                    - invoice
                    - delivery
                    - other
                  example: invoice
                name:
                  type: string
                  description: >-
                    Address name or label (max 255 characters). Must not be
                    greater than 255 characters.
                  example: Main Office
                email:
                  type: string
                  description: >-
                    Email address (max 255 characters). Must be a valid email
                    address. Must not be greater than 255 characters.
                  nullable: true
                  example: office@example.com
                phone:
                  type: string
                  description: >-
                    Phone number (max 20 characters). Must not be greater than
                    20 characters.
                  nullable: true
                  example: '+1234567890'
                mobile:
                  type: string
                  description: >-
                    Mobile number (max 20 characters). Must not be greater than
                    20 characters.
                  nullable: true
                  example: '+1234567890'
                street1:
                  type: string
                  description: >-
                    Street address line 1 (max 255 characters). Must not be
                    greater than 255 characters.
                  nullable: true
                  example: 123 Main Street
                street2:
                  type: string
                  description: >-
                    Street address line 2 (max 255 characters). Must not be
                    greater than 255 characters.
                  nullable: true
                  example: Suite 100
                city:
                  type: string
                  description: >-
                    City (max 255 characters). Must not be greater than 255
                    characters.
                  nullable: true
                  example: New York
                zip:
                  type: string
                  description: >-
                    Postal/ZIP code (max 20 characters). Must not be greater
                    than 20 characters.
                  nullable: true
                  example: '10001'
                state_id:
                  type: integer
                  description: >-
                    State ID. The `id` of an existing record in the states
                    table.
                  nullable: true
                  example: 9
                country_id:
                  type: integer
                  description: >-
                    Country ID. The `id` of an existing record in the countries
                    table.
                  nullable: true
                  example: 233
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                data:
                  id: 1
                  sub_type: company
                  name: TechNova Solutions Pvt. Ltd.
                  email: technova@example.com
                  phone: '1234567890'
                  mobile: '1234567890'
                  street1: 1234 Silicon Street
                  street2: Tech Park
                  city: New York
                  zip: '10001'
                  country_id: 233
                  state_id: 35
                  parent_id: null
                  creator_id: 1
                  created_at: '2025-04-07T12:34:34.000000Z'
                  updated_at: '2025-04-08T07:46:16.000000Z'
                  deleted_at: null
                  country:
                    id: 233
                    name: United States
                    code: US
                    phone_code: '1'
                    state_required: true
                    zip_required: true
                    currency_id: 1
                    created_at: '2025-04-07T12:34:34.000000Z'
                    updated_at: '2025-04-07T12:34:34.000000Z'
                  state:
                    id: 35
                    name: New York
                    code: NY
                    country_id: 233
                    created_at: '2025-04-07T12:34:34.000000Z'
                    updated_at: '2025-04-07T12:34:34.000000Z'
                  parent: null
                message: Address updated successfully.
        '401':
          description: Unauthenticated
          content:
            application/json:
              example:
                message: Unauthenticated.
        '404':
          description: Address not found
          content:
            application/json:
              example:
                message: Resource not found.
        '422':
          description: Validation error
          content:
            application/json:
              example:
                message: The given data was invalid.
                errors:
                  name:
                    - The name field must be a string.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API token from [Sign in](/api-reference/authentication), sent as
        `Authorization: Bearer <token>`. Tokens last 30 days.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.