---
title: Update
slug: QIlg-update
docTags: 
createdAt: 2022-01-05T08:54:09.000Z
---

Link Enterprise provides a web service endpoint that will allow you to update a document metadata.&#x20;

:::ApiMethodV2
```json
{
  "tab": "request",
  "url": "https://localhost:82/scrud/update",
  "name": "Update File metadata",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "ids",
        "type": "string",
        "description": "Unique id of filenet file."
      },
      {
        "kind": "required",
        "name": "cmsName",
        "type": "string",
        "description": "Name of the filenet system configured in Link Enterprise."
      },
      {
        "kind": "required",
        "name": "selectedCMS",
        "type": "string",
        "description": "Value should always be set to \"filenet\" to let Link Enterprise know which configured content system to search."
      },
      {
        "kind": "required",
        "name": "mdArray",
        "type": "Array",
        "description": "A JSON array where each index is a json object with the keys \"md1\" and \"md2\". Where md1 is the column name, and md2 is the value to be inserted in that column. Sharepoint allows multi value field. while updating multi value fields separate the field values with \"!DFLOW!\"."
      },
      {
        "name": "location",
        "kind": "required",
        "type": "string",
        "description": "filenet folder where the document need to be updated.",
        "children": []
      },
      {
        "name": "repository",
        "kind": "required",
        "type": "string",
        "description": "filenet repository Value",
        "children": []
      },
      {
        "name": "domain",
        "kind": "required",
        "type": "string",
        "description": "Filenet Domain name",
        "children": []
      },
      {
        "name": "checkout",
        "kind": "optional",
        "type": "string",
        "description": "If true, Does an Checkout on filenet document.",
        "children": []
      },
      {
        "name": "dateTimeFormat",
        "kind": "required",
        "type": "string",
        "description": "Update datetime property in this provided format.",
        "children": []
      },
      {
        "name": "type",
        "kind": "optional",
        "type": "string",
        "description": "Filenet Class name attached to the document. Default is \"Document\"",
        "children": []
      },
      {
        "name": "cancelCheckout",
        "kind": "optional",
        "type": "string",
        "description": "If true, cancel checkout on filenet Document.",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "NP6_JKLUVfKwgT7ZC9ANV",
        "code": "",
        "language": "200"
      },
      {
        "id": "2Qv2Iy-Q0df7ncSX-i60q",
        "code": "",
        "language": "500"
      }
    ],
    "selectedLanguageId": "NP6_JKLUVfKwgT7ZC9ANV"
  },
  "examples": {
    "languages": [
      {
        "id": "JlNcgO8TqXpNzQxN2xT04",
        "code": "{\n   \"cmsName\":\"Name of the filenet system configured in Link Enterpri.\",  \n    \"repository\":\"Filenet_Repository\",\n \"selectedCMS\":\"filenet\",\n \"domain\":\"Domain_Name\",\n\t\"checkout\":false,\n\t\"dateTimeFormat\":\"MM/dd/yyyy hh:mm:ss a z\",\n      \"type\":\"MetadataClassName\",\n\t\"location\":\"/folderName\",\n\t\"mdArray\":[\n\t{\"md1\": \"metadataField\", \"md2\": \"metadataValue\"}]\n\t\"id\":\"filenet document id\",\n\t\"cancelCheckout\":false\n}\n",
        "language": "json"
      }
    ],
    "selectedLanguageId": "JlNcgO8TqXpNzQxN2xT04"
  },
  "description": "",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "update-file-metadata",
  "legacyHash": "TlPao_NbsVcmi0eER-y03"
}
```
:::



