---
title: Updates the specified content media item by given content reference or unique identifier.
slug: cms-12/api/jeDk-updates-the-specified-content-media-item-by-given-content-reference-or-unique-identifier
docTags: 
createdAt: 2026-08-28T13:16:06.833Z
---

{
  "id": "V8JPlE5J6k3ggy7qSwQy0",
  "type": "api-oas-v2",
  "data": {
    "method": "PATCH",
    "url": "/api/episerver/v3.0/contentmanagement/{contentIdentifier}",
    "servers": [],
    "name": "Updates the specified content media item by given content reference or unique identifier.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "contentIdentifier",
          "type": "string",
          "description": "The content media identifier 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": "required",
          "name": "Content-Type",
          "type": "string",
          "description": "The content type associated with the upload media file."
        },
        {
          "kind": "optional",
          "name": "Filename",
          "type": "string",
          "description": "The filename should be stored into CMS."
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [],
      "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
      },
      {
        "statusCode": "409",
        "description": "Conflict",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "-nXb3rpfyyjAR1XPYTv69",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request PATCH \\\n     --url /api/episerver/v3.0/contentmanagement/{contentIdentifier} \\\n     --header 'accept: application/problem+json'"
        },
        {
          "id": "FP3bt9YC5twtrRBpzk23R",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/problem+json\");\nmyHeaders.append(\"content-type\", \"string\");\n\nvar requestOptions = {\n   method: 'PATCH',\n   headers: myHeaders,\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": "5rE-Vc4MAn2FYxZ2dnJOR",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\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\"] = \"string\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "i8AKDwxyaNyEpkz_LsSlN",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"/api/episerver/v3.0/contentmanagement/{contentIdentifier}\"\n\npayload = {}\nheaders = {\n   'accept': 'application/problem+json',\n   'content-type': 'string'\n}\n\nresponse = requests.request(\"PATCH\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "-nXb3rpfyyjAR1XPYTv69"
    },
    "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"
        },
        {
          "id": "response-4-409",
          "language": "409",
          "code": "// Conflict\n"
        }
      ],
      "selectedLanguageId": "response-0-204"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}