Update Folder Meta Data by Folder ID
POST /ws/rest/service/v1/dm/folder/update/<node_id>
Purpose
This service allows user to update a specific folder meta data using the folder node id.
Input
- Path Parameter
- node_id: node id of the folder which will be updated.
Use “Get Folder or Document meta data by path” REST Service to get the node_id value for the folder.
- node_id: node id of the folder which will be updated.
- Form Data (content Type: application/x-www-form-urlencoded)
- data (JSON String) Required: List of field and values for the folder attribute form.
Name: New name of the folder to perform rename.
- data (JSON String) Required: List of field and values for the folder attribute form.
Example:
URL: http://<host>:<port>/ws/rest/service/v1/document/update/298716
To update the folder "Folder1" under "/Project Documents/Service docs" with node id (2003131) is specified in path parameter, the data must be:
data:[ {"Name":"Folder1","Owner":"Company Administrator","Creation Date":"01/01/2016","% Complete":"100","Comments":"Fold 2 update" } ]
Use the GET call to get the structure of the JSON data.
Output
JSON object containing 'status', 'data', 'message'
Note: The read-only fields will not be updated with input values.
Response in case of Success:
{
"data":
[
{
"Path":"/DmPicker",
"Creation Date":"01/01/2016",
"Comments":"Fold 2 update dmpick",
"% Complete":"100",
"Name":"DmPicker"
}
],
"message":
[
{
"message":"OK"
}
],
"status":200
}
Response in case of error:
{
"data":
[
{
"Creation Date":"01/01/2016",
"Comments":"Fold 2 update dmpick",
"% Complete":"100",
"Name":"DmPicker"
}
],
"message":
[
{
"message":"Parent path or node id is invalid or does not exists."
}
],
"status":1039
}
Related Topics
Create Folders by Parent Folder ID
Update Folders Meta Data by Path
Get Folders or Documents Meta Data by Path
Get Folders or Documents Meta Data by Parent Folder ID
Last Published Friday, December 13, 2024