---
title: Update
slug: T6uo-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 metadata",
  "method": "POST",
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "id",
        "type": "string",
        "description": "Unique id of s3 file."
      },
      {
        "kind": "required",
        "name": "cmsName",
        "type": "string",
        "description": "Name of the s3 system configured in Link Enterprise."
      },
      {
        "kind": "required",
        "name": "selectedCMS",
        "type": "string",
        "description": "Value should always be set to \"s3\" 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."
      },
      {
        "name": "location",
        "kind": "required",
        "type": "string",
        "description": "S3 Bucket name where you want to update the document.",
        "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 s3 id\",\n   \"location\":\"S3 Bucket Name\",\n    \"mdArray\": [\n        {\n            \"md1\": \"someColumnToBeUpdated\",\n            \"md2\": \"newValue\"\n        }\n    ],\n    \"selectedCMS\": \"s3\"\n\n}",
        "language": "json"
      }
    ],
    "selectedLanguageId": "JlNcgO8TqXpNzQxN2xT04"
  },
  "description": "",
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "autoGeneratedAnchorSlug": "update-file-metadata",
  "legacyHash": "TlPao_NbsVcmi0eER-y03"
}
```
:::



