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

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

:::ApiMethodV2
```json
{
  "tab": "request",
  "url": "https://localhost:82/scrud/update",
  "name": "Update File/Folder metadata",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "id",
        "type": "string",
        "description": "Unique id of sharepoint file or folder."
      },
      {
        "kind": "required",
        "name": "cmsName",
        "type": "string",
        "description": "Name of the sharepoint system configured in Link Enterprise."
      },
      {
        "kind": "required",
        "name": "selectedCMS",
        "type": "string",
        "description": "Value should always be set to \"sp\" to let Link Enterprise know which configured content system to search."
      },
      {
        "kind": "required",
        "name": "type",
        "type": "string",
        "description": "Name of metadata template in sharepoint."
      },
      {
        "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": "Sharepoint Document Library location (including any sub site present). Each field is separated with \"/\".",
        "children": []
      },
      {
        "name": "repository",
        "kind": "required",
        "type": "string",
        "description": "Sharepoint repository Id. It consists of sharepoint domain name and root site name separated with \"/sites/\" or \":/teams/\"",
        "children": []
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "NP6_JKLUVfKwgT7ZC9ANV",
        "code": "\"completed\"",
        "language": "200"
      },
      {
        "id": "2Qv2Iy-Q0df7ncSX-i60q",
        "code": "",
        "language": "500"
      }
    ],
    "selectedLanguageId": "NP6_JKLUVfKwgT7ZC9ANV"
  },
  "examples": {
    "languages": [
      {
        "id": "JlNcgO8TqXpNzQxN2xT04",
        "code": "{\n  \"cmsName\":\"insertProductionSystemName (located in Link Enterprise  gui)\",\n         \"id\":\"unique sharepoint id specfic to folder/id\",\n   \"location\":\"/<subsite>/<documentLibraray>\",\n   \"repository\":\"<domainName>/sites/<siteName>\",\n    \"type\": \"insertMetaDataTemplateName\",\n    \"mdArray\": [\n        {\n            \"md1\": \"someColumnToBeUpdated\",\n            \"md2\": \"newValue\"\n        },{\n            \"md1\": \"someColumnToBeUpdated\",\n            \"md2\": \"newValue1!DLOW!newValue2\"\n        }\n    ],\n    \"selectedCMS\": \"sp\"\n\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "JlNcgO8TqXpNzQxN2xT04"
  },
  "description": "Update a file or folder metadata",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "update-filefolder-metadata",
  "legacyHash": "TlPao_NbsVcmi0eER-y03"
}
```
:::



