---
title: Puts the common draft catalog node.
slug: commerce-connect-15/service-api/-YTd-puts-the-common-draft-catalog-node
docTags: 
createdAt: 2026-08-28T14:35:19.222Z
---

{
  "id": "O7L-Js-pMg6lZbGVmrbYX",
  "type": "api-oas-v2",
  "data": {
    "method": "PUT",
    "url": "/episerverapi/commerce/nodes/{nodeCode}/commondraft/{lang}",
    "servers": [],
    "name": "Puts the common draft catalog node.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "lang",
          "type": "string",
          "description": "The language code."
        },
        {
          "kind": "required",
          "name": "nodeCode",
          "type": "string",
          "description": ""
        }
      ],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "nodeCode",
          "type": "string",
          "description": "The node code."
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "The catalog node.",
          "customType": "DraftNode",
          "schema": [
            {
              "name": "code",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the Category Code."
            },
            {
              "name": "parentNodeCode",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the parent node code."
            },
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the name."
            },
            {
              "name": "startDate",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "Gets or sets the start date.",
              "format": "date-time"
            },
            {
              "name": "endDate",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "Gets or sets the end date.",
              "format": "date-time"
            },
            {
              "name": "metaClass",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the MetaClass."
            },
            {
              "name": "catalog",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the Catalog."
            },
            {
              "name": "sortOrder",
              "kind": "optional",
              "type": "integer<int32>",
              "description": "Gets or sets the sort order.",
              "format": "int32"
            },
            {
              "name": "parentNode",
              "kind": "optional",
              "type": "object",
              "description": "Class that represents linkage and more information about models.",
              "modelRef": "#/components/schemas/ResourceLink",
              "customType": "ResourceLink",
              "schema": [
                {
                  "name": "title",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the title."
                },
                {
                  "name": "type",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the type."
                },
                {
                  "name": "href",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the uri."
                },
                {
                  "name": "properties",
                  "kind": "optional",
                  "type": "array",
                  "nullable": true,
                  "description": "Gets or sets the properties.",
                  "modelRef": "#/components/schemas/NameValue",
                  "customType": "NameValue[]",
                  "schema": [
                    {
                      "name": "name",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Gets or sets the name."
                    },
                    {
                      "name": "value",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Gets or sets the type."
                    }
                  ]
                }
              ]
            },
            {
              "name": "assets",
              "kind": "optional",
              "type": "array",
              "nullable": true,
              "description": "Gets or sets the assets.",
              "modelRef": "#/components/schemas/ResourceLink",
              "customType": "ResourceLink[]",
              "schema": [
                {
                  "name": "title",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the title."
                },
                {
                  "name": "type",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the type."
                },
                {
                  "name": "href",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the uri."
                },
                {
                  "name": "properties",
                  "kind": "optional",
                  "type": "array",
                  "nullable": true,
                  "description": "Gets or sets the properties.",
                  "modelRef": "#/components/schemas/NameValue",
                  "customType": "NameValue[]",
                  "schema": [
                    {
                      "name": "name",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Gets or sets the name."
                    },
                    {
                      "name": "value",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Gets or sets the type."
                    }
                  ]
                }
              ]
            },
            {
              "name": "children",
              "kind": "optional",
              "type": "array",
              "nullable": true,
              "description": "Gets or sets the child nodes.",
              "modelRef": "#/components/schemas/ResourceLink",
              "customType": "ResourceLink[]",
              "schema": [
                {
                  "name": "title",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the title."
                },
                {
                  "name": "type",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the type."
                },
                {
                  "name": "href",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the uri."
                },
                {
                  "name": "properties",
                  "kind": "optional",
                  "type": "array",
                  "nullable": true,
                  "description": "Gets or sets the properties.",
                  "modelRef": "#/components/schemas/NameValue",
                  "customType": "NameValue[]",
                  "schema": [
                    {
                      "name": "name",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Gets or sets the name."
                    },
                    {
                      "name": "value",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Gets or sets the type."
                    }
                  ]
                }
              ]
            },
            {
              "name": "entries",
              "kind": "optional",
              "type": "array",
              "nullable": true,
              "description": "Gets or sets the entries.",
              "modelRef": "#/components/schemas/ResourceLink",
              "customType": "ResourceLink[]",
              "schema": [
                {
                  "name": "title",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the title."
                },
                {
                  "name": "type",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the type."
                },
                {
                  "name": "href",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the uri."
                },
                {
                  "name": "properties",
                  "kind": "optional",
                  "type": "array",
                  "nullable": true,
                  "description": "Gets or sets the properties.",
                  "modelRef": "#/components/schemas/NameValue",
                  "customType": "NameValue[]",
                  "schema": [
                    {
                      "name": "name",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Gets or sets the name."
                    },
                    {
                      "name": "value",
                      "kind": "optional",
                      "type": "string",
                      "nullable": true,
                      "description": "Gets or sets the type."
                    }
                  ]
                }
              ]
            },
            {
              "name": "metaFields",
              "kind": "optional",
              "type": "array",
              "nullable": true,
              "description": "Gets or sets the meta field data.",
              "modelRef": "#/components/schemas/DraftMetaFieldProperty",
              "customType": "DraftMetaFieldProperty[]",
              "schema": [
                {
                  "name": "name",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the name."
                },
                {
                  "name": "type",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the type."
                },
                {
                  "name": "data",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the data."
                }
              ]
            },
            {
              "name": "seoInformation",
              "kind": "optional",
              "type": "object",
              "description": "The draft Seo info model.",
              "modelRef": "#/components/schemas/DraftSeoInfo",
              "customType": "DraftSeoInfo",
              "schema": [
                {
                  "name": "title",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the title."
                },
                {
                  "name": "uri",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the URI."
                },
                {
                  "name": "uriSegment",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the uri segment."
                },
                {
                  "name": "description",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the description."
                },
                {
                  "name": "keywords",
                  "kind": "optional",
                  "type": "string",
                  "nullable": true,
                  "description": "Gets or sets the keywords."
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/DraftNode",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Success",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "204",
        "description": "The common draft catalog node is saved.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "400",
        "description": "If the common draft catalog node 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 common draft does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "sgIknVw5R1iAFAolO9T8M",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PUT \\\n     --url /episerverapi/commerce/nodes/{nodeCode}/commondraft/{lang} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "LZ_E1rB-Y2ZuwQJ-RU9xQ",
          "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/nodes/{nodeCode}/commondraft/{lang}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "Wta91lV5q5I7DB_qB4u0L",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/nodes/{nodeCode}/commondraft/{lang}\")\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": "xcUMe8n2q7dLPKiNPa78I",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/nodes/{nodeCode}/commondraft/{lang}\"\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": "sgIknVw5R1iAFAolO9T8M"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Success\n"
        },
        {
          "id": "response-1-204",
          "language": "204",
          "code": "// The common draft catalog node is saved.\n"
        },
        {
          "id": "response-2-400",
          "language": "400",
          "code": "// If the common draft catalog node 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 node common draft does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}