Agnostic Guides
...
SharePoint Endpoints
Update
1 min
link enterprise provides a web service endpoint that will allow you to update a document or folders metadata { "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" } }