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

{
  "id": "b7SoI5MbMQOS6pU4ZgudO",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://localhost:64424/episerverapi/commerce/catalogs/commondraft/{lang}",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/catalogs/commondraft/{lang}"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/catalogs/commondraft/{lang}"
      }
    ],
    "name": "Creates the catalog common draft.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "lang",
          "type": "string",
          "description": "The language 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 catalog.",
          "customType": "EPiServer.ServiceApi.Commerce.Models.Catalog.DraftCatalog",
          "schema": [
            {
              "name": "RouteSegment",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the route segment."
            },
            {
              "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",
              "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",
              "description": "Gets or sets the name."
            },
            {
              "name": "DefaultCurrency",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the default currency."
            },
            {
              "name": "DefaultLanguage",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the default language."
            },
            {
              "name": "WeightBase",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the weight base."
            },
            {
              "name": "LengthBase",
              "kind": "optional",
              "type": "string",
              "description": "Gets or sets the length base."
            }
          ],
          "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Catalog.DraftCatalog",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "The catalog common draft is saved.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "The draft catalog model.",
            "customType": "EPiServer.ServiceApi.Commerce.Models.Catalog.DraftCatalog",
            "schema": [
              {
                "name": "RouteSegment",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the route segment."
              },
              {
                "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",
                "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",
                "description": "Gets or sets the name."
              },
              {
                "name": "DefaultCurrency",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the default currency."
              },
              {
                "name": "DefaultLanguage",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the default language."
              },
              {
                "name": "WeightBase",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the weight base."
              },
              {
                "name": "LengthBase",
                "kind": "optional",
                "type": "string",
                "description": "Gets or sets the length base."
              }
            ],
            "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Catalog.DraftCatalog",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "If the draft catalog model is not valid.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "UjfjHU6eSnqR7L-k1Gxh0",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url http://localhost:64424/episerverapi/commerce/catalogs/commondraft/{lang} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "BGqoDHbnfTuGkHrhQRkw5",
          "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/catalogs/commondraft/{lang}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "eMHgggxXlZj78DS_-cTB9",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/catalogs/commondraft/{lang}\")\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": "Yv11kJMpjRL4p9LmR6nHG",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/catalogs/commondraft/{lang}\"\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": "UjfjHU6eSnqR7L-k1Gxh0"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// The catalog common draft is saved.\n{\n  \"RouteSegment\": \"\",\n  \"EndDate\": \"\",\n  \"StartDate\": \"\",\n  \"IsPrimary\": false,\n  \"Owner\": \"\",\n  \"SortOrder\": \"\",\n  \"Name\": \"\",\n  \"DefaultCurrency\": \"\",\n  \"DefaultLanguage\": \"\",\n  \"WeightBase\": \"\",\n  \"LengthBase\": \"\"\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// If the draft catalog model is not valid.\n"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}