> ## 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 warehouse

> Update an existing warehouse

Also accepts `PATCH` with the same body.



## OpenAPI

````yaml /api-reference/openapi.json put /admin/api/v1/inventories/warehouses/{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/inventories/warehouses/{id}:
    put:
      tags:
        - Inventory
      summary: Update warehouse
      description: |-
        Update an existing warehouse

        Also accepts `PATCH` with the same body.
      operationId: inventory-warehouses-update-warehouse
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            description: The warehouse ID
            example: 1
          description: The warehouse ID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Warehouse name. Must not be greater than 255 characters.
                  example: Main Warehouse
                code:
                  type: string
                  description: Warehouse code. Must not be greater than 255 characters.
                  example: WH-MAIN
                company_id:
                  type: integer
                  description: >-
                    Company ID. The `id` of an existing record in the companies
                    table.
                  example: 1
                partner_address_id:
                  type: integer
                  description: >-
                    Partner address ID. The `id` of an existing record in the
                    partners_partners table.
                  nullable: true
                  example: 10
                reception_steps:
                  type: string
                  description: Incoming shipment workflow step value.
                  nullable: true
                  example: one_step
                delivery_steps:
                  type: string
                  description: Outgoing shipment workflow step value.
                  nullable: true
                  example: one_step
                supplier_warehouses:
                  type: array
                  items:
                    type: integer
                  description: >-
                    The `id` of an existing record in the inventories_warehouses
                    table.
                  example:
                    - 16
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                data:
                  id: 1
                  name: Your Company
                  code: WH
                  sort: 1
                  reception_steps: one_step
                  delivery_steps: one_step
                  created_at: '2025-04-07T13:12:33.000000Z'
                  updated_at: '2025-04-07T13:12:33.000000Z'
                  deleted_at: null
                message: Warehouse updated successfully.
        '401':
          description: Unauthenticated
          content:
            application/json:
              example:
                message: Unauthenticated.
        '404':
          description: Warehouse not found
        '422':
          description: Validation error
          content:
            application/json:
              example:
                message: The given data was invalid.
                errors:
                  name:
                    - The name field is required.
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.