Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! 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': []