Skip to main content
5-Regular Member
January 6, 2025
Question

Odata REST API batch request

  • January 6, 2025
  • 3 replies
  • 1037 views
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.

3 replies

Community Moderator
January 10, 2025

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.

5-Regular Member
January 14, 2025

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

HelesicPetr
22-Sapphire II
22-Sapphire II
January 15, 2025

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

17-Peridot
January 10, 2025
Community Moderator
January 14, 2025

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.