---
title: Update the specified content item by given content reference or unique identifier.
slug: cms-12/api/update-the-specified-content-item-by-given-content-reference-or-unique-identifier
createdAt: 2026-08-28T13:16:06.833Z
---

{
  "id": "uxgrfTws5tTY0V8TsUd9Z",
  "type": "api-oas-v2",
  "data": {
    "method": "PATCH",
    "url": "/api/episerver/v3.0/contentmanagement/{contentIdentifier}",
    "servers": [],
    "name": "Update the specified content item by given content reference or unique identifier.",
    "description": "",
    "contentType": "application/json-patch+json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "contentIdentifier",
          "type": "string",
          "description": "The content reference or unique identifier of the content item that should be updated."
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/problem+json"
          ],
          "default": "application/problem+json"
        },
        {
          "kind": "optional",
          "name": "x-epi-validation-mode",
          "type": "object",
          "description": "<p>The validation mode used when saving. Optional, defaults to EPiServer.ContentManagementApi.Internal.ContentValidationMode.Complete.</p>",
          "customType": "contentValidationMode",
          "schema": [],
          "modelRef": "#/components/schemas/contentValidationMode"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "The patch information describing how the content item should be updated.",
          "customType": "patchContent",
          "schema": [
            {
              "name": "name",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "The name of the content.",
              "maxLength": 255
            },
            {
              "name": "language",
              "kind": "optional",
              "type": "object",
              "description": "Serializable model class for store language information",
              "modelRef": "#/components/schemas/language",
              "customType": "language",
              "schema": [
                {
                  "name": "displayName",
                  "kind": "optional",
                  "type": "string",
                  "readOnly": true,
                  "nullable": true,
                  "description": "<p>Display name of language. Ex: English, Svenska</p>"
                },
                {
                  "name": "name",
                  "kind": "required",
                  "type": "string",
                  "nullable": true,
                  "description": "<p>Name of language. Ex: en, sv</p>"
                }
              ]
            },
            {
              "name": "routeSegment",
              "kind": "optional",
              "type": "string",
              "nullable": true,
              "description": "The route segment of the content."
            },
            {
              "name": "startPublish",
              "kind": "optional",
              "type": "string<date-time>",
              "nullable": true,
              "description": "The start publish date for the content.",
              "format": "date-time"
            },
            {
              "name": "stopPublish",
              "kind": "optional",
              "type": "string<date-time>",
              "nullable": true,
              "description": "The stop publish date of the content.",
              "format": "date-time"
            },
            {
              "name": "status",
              "kind": "optional",
              "type": "string",
              "description": "",
              "modelRef": "#/components/schemas/versionStatus",
              "customType": "versionStatus",
              "schema": []
            }
          ],
          "modelRef": "#/components/schemas/patchContent",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "204",
        "description": "No Content",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "400",
        "description": "Bad Request",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "403",
        "description": "Forbidden",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "404",
        "description": "Not Found",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PATCH \\\n     --url /api/episerver/v3.0/contentmanagement/{contentIdentifier} \\\n     --header 'accept: application/problem+json' \\\n     --header 'content-type: application/json-patch+json' \\\n     --header 'x-epi-validation-mode: object' \\\n     --data '{\n     \"language\": {\n     \"name\": \"\"\n     }\n     }'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/problem+json\");\nmyHeaders.append(\"content-type\", \"application/json-patch+json\");\nmyHeaders.append(\"x-epi-validation-mode\", \"object\");\n\nvar raw = JSON.stringify({\n   \"language\": {\n      \"name\": \"\"\n   }\n});\n\nvar requestOptions = {\n   method: 'PATCH',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"/api/episerver/v3.0/contentmanagement/{contentIdentifier}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/api/episerver/v3.0/contentmanagement/{contentIdentifier}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"accept\"] = \"application/problem+json\"\nrequest[\"content-type\"] = \"application/json-patch+json\"\nrequest[\"x-epi-validation-mode\"] = \"object\"\nrequest.body = JSON.dump({\n   \"language\": {\n      \"name\": \"\"\n   }\n})\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/api/episerver/v3.0/contentmanagement/{contentIdentifier}\"\n\npayload = json.dumps({\n   \"language\": {\n      \"name\": \"\"\n   }\n})\nheaders = {\n   'accept': 'application/problem+json',\n   'content-type': 'application/json-patch+json',\n   'x-epi-validation-mode': 'object'\n}\n\nresponse = requests.request(\"PATCH\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-204",
          "language": "204",
          "code": "// No Content\n"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Bad Request\n"
        },
        {
          "id": "response-2-403",
          "language": "403",
          "code": "// Forbidden\n"
        },
        {
          "id": "response-3-404",
          "language": "404",
          "code": "// Not Found\n"
        }
      ],
      "selectedLanguageId": "response-0-204"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}