Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
I've added a custom subtype to Document called MyDocument. It has three additional string fields. I'd like to create a batch of MyDocument in the same or similar way I can create a batch of documents by POSTing to
/Windchill/servlet/odata/v5/DocMgmt/CreateDocuments
'Title': "Default Title",
'Number': var.document_number,
'Description': "Default Description",
'Name': var.document_number,
'@data.type': "#PTC.DocMgmt.MyDocument",
'CustomAttrOne': var.customOne,
'CustomAttrTwo': var.customTwo,
'CustomAttrThree': var.customThree,
'Context@odata.bind': `Containers('${var.containerId}')`,
'Folder@odata.bind': `Folders('${var.folderId}')`,
'Thumbnails@odata.bind': [],
'SmallThumbnails@odata.bind': [],
'Attachments@odata.bind': []