Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Solved! Go to Solution.
I will share the steps for postman:
1, Get latest CSRF NONCE
URL: http://<server>:80/Windchill/servlet/odata/PTC/GetCSRFToken()
Request Type: GET
Only Authorization tab needed to be filled in Postman
Copy the Nonce Vale
2. Get the OID for Part
URL: http://<server>:80/Windchill/servlet/odata/ProdMgmt/Parts?ptc.search.latestversion=true&$filter=View eq 'Design' and Number eq 'DQ001'
Request Type: GET
Only Authorization tab needed to be filled in Postman
Copy the part ID
3. Exceute the Get BOM
Request Type: POST
Replace the Part ID in step 3 url as fecthed in step 2
Authorization tab needed to be filled in Postman
Also, add a parameter as CSRF_NONCE with value as fetched in step 1 in the headers tab in Postman as shown below
Give the body as {} in the Body tab in Postman as shown below
Then execute the request to get the result.
I guess you need a nab critera (Filter) , take a look at https://www.ptc.com/en/support/article/CS299749
Is the Navigation Criteria even neccassary?
Remove Nav criteria and keep the body blank.
Try this URL:
The Rest API PTC.ProdMgmt.GetBOM is deprecated and can only be used in REST v4
like this
cannot delete the exclamation
POSTMAN i get this
the issue remains, or did I type something wrong
Regards
I will share the steps for postman:
1, Get latest CSRF NONCE
URL: http://<server>:80/Windchill/servlet/odata/PTC/GetCSRFToken()
Request Type: GET
Only Authorization tab needed to be filled in Postman
Copy the Nonce Vale
2. Get the OID for Part
URL: http://<server>:80/Windchill/servlet/odata/ProdMgmt/Parts?ptc.search.latestversion=true&$filter=View eq 'Design' and Number eq 'DQ001'
Request Type: GET
Only Authorization tab needed to be filled in Postman
Copy the part ID
3. Exceute the Get BOM
Request Type: POST
Replace the Part ID in step 3 url as fecthed in step 2
Authorization tab needed to be filled in Postman
Also, add a parameter as CSRF_NONCE with value as fetched in step 1 in the headers tab in Postman as shown below
Give the body as {} in the Body tab in Postman as shown below
Then execute the request to get the result.
I accepted your reply as solution and in your proposal i've found my mistake
I forgot to put exclamation to Body tab