Skip to main content
Jan 6, 2025 4:05 AM UTC
Question

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

Jan 10, 2025 5:10 AM UTC

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.

Jan 14, 2025 4:34 AM UTC

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

Jan 15, 2025 10:09 AM UTC

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

Jan 10, 2025 6:19 AM UTC
Jan 14, 2025 4:31 AM UTC

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.