inventory_stock_locations

Update an inventory stock location

Changed on

Update an inventory stock location

patch/inventory_stock_locations/{inventoryStockLocationId}

Request

  • Base URL
    https://{your_organization_slug}.commercelayer.io/api
  • URL
    https://{your_organization_slug}.commercelayer.io/api/inventory_stock_locations/{inventoryStockLocationId}
  • Auth
    HTTP bearer

Path parameters

inventoryStockLocationIdstring required

The resource's id

Request body

Example request

{
  "data": {
    "id": "XAyRWNUzyN",
    "attributes": {
      "priority": 1,
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    },
    "relationships": {
      "stock_location": {
        "data": {
          "id": "XAyRWNUzyN"
        }
      },
      "inventory_model": {
        "data": {
          "id": "XAyRWNUzyN"
        }
      }
    }
  }
}

Response

The updated inventory stock location object

Changes

    • breaking

      added the new required request property ///

    • breaking

      added the new required request property ///

    • breaking

      request property / was restricted to a list of enum values

    • warning

      removed the request property ///

    • warning

      removed the request property ///

    • warning

      removed the request property ///

    • warning

      removed the request property ///

    • info

      the request property // became nullable

    • info

      the request property // became nullable

    • info

      the request property // became nullable

    • info

      the request property default value inventory_stock_locations was removed

    • info

      added the new inventory_stock_locations enum value to the request property /

    • info

      added the media type application/vnd.api+json for the response with the status