---
title: Puts the catalog node item asset.
slug: commerce-connect-15/service-api/_0ci-puts-the-catalog-node-item-asset
docTags: 
createdAt: 2026-10-09T17:33:29.599Z
---

{
  "id": "8EJ6kEgt9_niEbb1EEu29",
  "type": "api-oas-v2",
  "data": {
    "method": "PUT",
    "url": "http://localhost:64424/episerverapi/commerce/nodes/{nodeCode}/assets/{assetKey}/{assetType}",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/nodes/{nodeCode}/assets/{assetKey}/{assetType}"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/nodes/{nodeCode}/assets/{assetKey}/{assetType}"
      }
    ],
    "name": "Puts the catalog node item asset.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "nodeCode",
          "type": "string",
          "description": "The node code."
        },
        {
          "kind": "required",
          "name": "assetKey",
          "type": "string",
          "description": "The asset key."
        },
        {
          "kind": "required",
          "name": "assetType",
          "type": "string",
          "description": "Type of the asset."
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "The asset.",
          "customType": "EPiServer.ServiceApi.Commerce.Models.Catalog.ItemAsset",
          "schema": [
            {
              "name": "CatalogNodeCode",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the catalog node code."
            },
            {
              "name": "CatalogEntryCode",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the catalog entry code."
            },
            {
              "name": "AssetKey",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the asset key."
            },
            {
              "name": "AssetType",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the type of the asset."
            },
            {
              "name": "GroupName",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the name of the group."
            },
            {
              "name": "SortOrder",
              "kind": "optional",
              "type": "integer<int32>",
              "description": "Gets or sets the sort order.",
              "format": "int32"
            }
          ],
          "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Catalog.ItemAsset",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "204",
        "description": "The catalog node item asset is saved.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "If the catalog node item asset 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 node or item asset does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "ozWIk6bd7x9U74dpHvqIk",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PUT \\\n     --url http://localhost:64424/episerverapi/commerce/nodes/{nodeCode}/assets/{assetKey}/{assetType} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "QBm2gih1-nACWhuVXZ4Qb",
          "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(\"http://localhost:64424/episerverapi/commerce/nodes/{nodeCode}/assets/{assetKey}/{assetType}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "kzQiDFQkh_d5jAhaMWG6r",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/nodes/{nodeCode}/assets/{assetKey}/{assetType}\")\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": "vV9J8e1IlPhbbO5TVDke0",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/nodes/{nodeCode}/assets/{assetKey}/{assetType}\"\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": "ozWIk6bd7x9U74dpHvqIk"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-204",
          "language": "204",
          "code": "// The catalog node item asset is saved.\n{}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// If the catalog node item asset model is not valid.\n"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        },
        {
          "id": "response-3-404",
          "language": "404",
          "code": "// If node or item asset does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-204"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}