Creating a Document in a Different Organization
This example shows you how to create a document in a different organization. In Windchill, set the Expose Organization preference in the Preference Management utility to Yes. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/DocMgmt/Documents HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "TestDoc1",
"Description": "TestDoc1_Description",
"Title": "TestDoc1_Title",
"Organization@odata.bind": "Organizations('OR:wt.inf.container.OrgContainer:373739')",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:48788507')"
}
Was this helpful?