Odata REST API batch request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Odata REST API batch request
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.
- Labels:
-
API
-
Business Logic Customization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have checked that , but want to know how bound data to this requests
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Have you checked the batch request samples in the documentation?
https://support.ptc.com/help/windchill/r13.1.0.0/en/index.html#page/Windchill_Help_Center/WCRESTFramework/WCCG_RESTAPIsBatchSupport_examples.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.