Updating a Document
This example shows you how to update a specific document. Use the following PATCH URI with the request body.
URI
PATCH /Windchill/servlet/odata/DocMgmt/Documents('OR:wt.doc.WTDocument:48796553')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Description": "TestDoc1_Description_Update",
"CustomAttribute": "This is Test Attribute"
}
Similarly, you can also update the classification attributes specified in the request body for a specific classified document. To update a classified document, you must first check out the document.
Was this helpful?