---
title: Puts the catalog entry warehouse inventory.
slug: commerce-connect-15/service-api/puts-the-catalog-entry-warehouse-inventory
docTags: 
createdAt: 2026-10-09T17:33:31.916Z
---

{
  "id": "tyxrZkeG4uV5Qt9Umlkgq",
  "type": "api-oas-v2",
  "data": {
    "method": "PUT",
    "url": "/episerverapi/commerce/warehouses/{warehouseCode}",
    "servers": [],
    "name": "Puts the catalog entry warehouse inventory.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "warehouseCode",
          "type": "string",
          "description": "The warehouse code."
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "The warehouse.",
          "customType": "Warehouse",
          "schema": [
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the name."
            },
            {
              "name": "isActive",
              "kind": "optional",
              "type": "boolean",
              "description": "Gets or sets a value indicating whether this instance is active."
            },
            {
              "name": "isPrimary",
              "kind": "optional",
              "type": "boolean",
              "description": "Gets or sets a value indicating whether this instance is primary."
            },
            {
              "name": "sortOrder",
              "kind": "optional",
              "type": "integer<int32>",
              "description": "Gets or sets the sort order.",
              "format": "int32"
            },
            {
              "name": "code",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the code."
            },
            {
              "name": "fulfillmentPriorityOrder",
              "kind": "optional",
              "type": "integer<int32>",
              "description": "Gets or sets the fulfillment priority order.",
              "format": "int32"
            },
            {
              "name": "isFulfillmentCenter",
              "kind": "optional",
              "type": "boolean",
              "description": "Gets or sets a value indicating whether this instance is fulfillment center."
            },
            {
              "name": "isPickupLocation",
              "kind": "optional",
              "type": "boolean",
              "description": "Gets or sets a value indicating whether this instance is pickup location."
            },
            {
              "name": "isDeliveryLocation",
              "kind": "optional",
              "type": "boolean",
              "description": "Gets or sets a value indicating whether this instance is delivery location."
            },
            {
              "name": "firstName",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the first name."
            },
            {
              "name": "lastName",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the last name."
            },
            {
              "name": "organization",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the organization."
            },
            {
              "name": "line1",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the line1."
            },
            {
              "name": "line2",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the line2."
            },
            {
              "name": "city",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the city."
            },
            {
              "name": "state",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the state."
            },
            {
              "name": "countryCode",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the country code."
            },
            {
              "name": "countryName",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the name of the country."
            },
            {
              "name": "postalCode",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the postal code."
            },
            {
              "name": "regionCode",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the region code."
            },
            {
              "name": "regionName",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the name of the region."
            },
            {
              "name": "daytimePhoneNumber",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the daytime phone number."
            },
            {
              "name": "eveningPhoneNumber",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the evening phone number."
            },
            {
              "name": "faxNumber",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the fax number."
            },
            {
              "name": "email",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the email."
            }
          ],
          "modelRef": "#/components/schemas/Warehouse",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Success",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "204",
        "description": "The warehouse is saved.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "400",
        "description": "If the warehouse model is not valid.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "If warehouse does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "7DsRAOPhsGTJ4VNgs63ml",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PUT \\\n     --url /episerverapi/commerce/warehouses/{warehouseCode} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "bRUAHLP_p86gxO435nLy1",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'PUT',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"/episerverapi/commerce/warehouses/{warehouseCode}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "EXn4ptiG1Y1tMpgxfH5DG",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/warehouses/{warehouseCode}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Put.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "kMCp1A3B85HW23SaEbKRp",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/warehouses/{warehouseCode}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"PUT\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "7DsRAOPhsGTJ4VNgs63ml"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Success\n"
        },
        {
          "id": "response-1-204",
          "language": "204",
          "code": "// The warehouse is saved.\n"
        },
        {
          "id": "response-2-400",
          "language": "400",
          "code": "// If the warehouse model is not valid.\n"
        },
        {
          "id": "response-3-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        },
        {
          "id": "response-4-404",
          "language": "404",
          "code": "// If warehouse does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}