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

{
  "id": "kO1M4D3xx0a_nIMGALtrU",
  "type": "api-oas-v2",
  "data": {
    "method": "PUT",
    "url": "/episerverapi/commerce/catalogs/{catalogName}/commondraft/{lang}",
    "servers": [],
    "name": "Puts the catalog common draft.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "catalogName",
          "type": "string",
          "description": "The catalog name."
        },
        {
          "kind": "required",
          "name": "lang",
          "type": "string",
          "description": "The language code."
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "The draft catalog.",
          "customType": "DraftCatalog",
          "schema": [
            {
              "name": "endDate",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "Gets or sets the end date.",
              "format": "date-time"
            },
            {
              "name": "startDate",
              "kind": "optional",
              "type": "string<date-time>",
              "description": "Gets or sets the start date.",
              "format": "date-time"
            },
            {
              "name": "isPrimary",
              "kind": "optional",
              "type": "boolean",
              "description": "Gets or sets a value indicating whether this instance is primary."
            },
            {
              "name": "owner",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the owner."
            },
            {
              "name": "sortOrder",
              "kind": "optional",
              "type": "integer<int32>",
              "description": "Gets or sets the sort order.",
              "format": "int32"
            },
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the name."
            },
            {
              "name": "defaultCurrency",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the default currency."
            },
            {
              "name": "defaultLanguage",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the default language."
            },
            {
              "name": "weightBase",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the weight base."
            },
            {
              "name": "lengthBase",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the length base."
            },
            {
              "name": "routeSegment",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "Gets or sets the route segment."
            }
          ],
          "modelRef": "#/components/schemas/DraftCatalog",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Success",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "204",
        "description": "The catalog common draft is saved.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "400",
        "description": "If the catalog draft 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 catalog common draft does not exist.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "z4SSN8AMtXs-8M1jU2LhX",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PUT \\\n     --url /episerverapi/commerce/catalogs/{catalogName}/commondraft/{lang} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "_KOy_DLEvVFNK-przV1f-",
          "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/catalogs/{catalogName}/commondraft/{lang}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "5h8FyFsDuEuHLx79BcehF",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/episerverapi/commerce/catalogs/{catalogName}/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": "KFwXbzLQCUo5VcIT6k00f",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/episerverapi/commerce/catalogs/{catalogName}/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": "z4SSN8AMtXs-8M1jU2LhX"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Success\n"
        },
        {
          "id": "response-1-204",
          "language": "204",
          "code": "// The catalog common draft is saved.\n"
        },
        {
          "id": "response-2-400",
          "language": "400",
          "code": "// If the catalog draft 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 catalog common draft does not exist.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}