Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Odata REST API batch request

OS_11417190
5-Regular Member

Odata REST API batch request

I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.11

I want to create part object subtype in windchill through thingworx application. For this creation I have to use 3 endpoints in single request that are uservalidation, attribute_validation, create Object. To do this I believe that in ODATA I can use batch request. But finding some difficulty that where to save that Json/js files which consist of the batch request and all. If I can get a stepwise procedure, it may help me to do the requirement. I want to use some OOTB endpoints and some custom.
5 REPLIES 5

Hi @OS_11417190

Thank you for your question. 

Your post has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.

 

Regards,

Vivek N

Community Moderation Team.

OS_11417190
5-Regular Member
(To:vnamboodheri)

I have checked that , but want to know how bound data to this requests

Hi @OS_11417190 

It is easy, just define the json input as you do for standard http requests and send it to the HTTP server

If you do not know how to create the request with JSON I do recommend to study something about it

 

Content-Type: application/json
{
"Name":"BT002",
"Description":"Document Batch Test 002",
"Title":"Document TD002",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:95801')"
}

PetrH

Hi @OS_11417190,

 
Thanks for using the PTC Community.

 

I wanted to let you know that there is an input to you on your topic. If you are in a position to respond to it, that would be great. 

And, If it helped to answer your question, please mark it as the 'Accepted Solution.

Regards,

Vivek N
Community Moderation Team.

Announcements

Top Tags