Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hello,
I want to create a WTDocument using windchill rest service there is an API under Document Management.
Could you please help me for the providing proper input.
The input JSON is below-
{
"Title": "",
"Number": "1234",
"Description": "Text",
"Name": "test",
"@odata.type": "#PTC.DocMgmt.EngDoc",
"SmallThumbnails@odata.bind": [
""
],
"PrimaryContent@odata.bind": "",
"Thumbnails@odata.bind": [
""
],
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:188653')",
"Folder@odata.bind": "",
"Attachments@odata.bind": [
""
]
}
I am always getting "The binding link '' is malformed" exception.
Thanks!!!
Not an expert in REST here but is this your solution?
https://www.ptc.com/en/support/article/CS375783?source=search
I have not been active in Windchill REST Services but at a glance, I can see a few possible problems:
This does should work
{
"Name": "test",
"Description": "Text",
"Title": "Test1 Title",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:188653')",
"Folder@odata.bind" : "Folders('<folder_id>')"
}