---
title: Posts the catalog entry item asset.
slug: commerce-connect-15/service-api/hmOh-posts-the-catalog-entry-item-asset
docTags: 
createdAt: 2026-10-09T17:33:32.660Z
---

{
  "id": "ARO7Nd8AOKbSf2MefsGny",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://localhost:64424/episerverapi/commerce/entries/{entryCode}/assets",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/entries/{entryCode}/assets"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/entries/{entryCode}/assets"
      }
    ],
    "name": "Posts the catalog entry item asset.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "entryCode",
          "type": "string",
          "description": "The entry code."
        }
      ],
      "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": "200",
        "description": "The catalog entry item asset is saved.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Represents a catalog item 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
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "If the catalog entry 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 entry does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "BASBgN0WhOJ5iln5qcv2d",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url http://localhost:64424/episerverapi/commerce/entries/{entryCode}/assets \\\n     --header 'accept: application/json'"
        },
        {
          "id": "cOKrhVdCdcg4wm2OHMAEe",
          "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: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"http://localhost:64424/episerverapi/commerce/entries/{entryCode}/assets\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "tc69Tmtj39GEv3MdbnYEY",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/entries/{entryCode}/assets\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "nNbc9iHTU2v2-HCcf_cFh",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/entries/{entryCode}/assets\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "BASBgN0WhOJ5iln5qcv2d"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// The catalog entry item asset is saved.\n{\n  \"CatalogNodeCode\": \"\",\n  \"CatalogEntryCode\": \"\",\n  \"AssetKey\": \"\",\n  \"AssetType\": \"\",\n  \"GroupName\": \"\",\n  \"SortOrder\": \"\"\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// If the catalog entry 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 entry does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}