Updating Multiple Documents
The following example shows you how to update multiple documents. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/DocMgmt/UpdateDocuments
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Documents": [
{ "ID": "OR:wt.doc.WTDocument:2276131", "Description": "Updated description1", "Title": "Updated title1" }
,
{ "ID": "OR:wt.doc.WTDocument:2276126", "Title": "Updated title2" }
]
}
Similarly, you can also update the classification attributes for multiple classified documents specified in the request body. To update multiple classified documents, the respective documents must be checked out.
Was this helpful?