Skip to main content
Best answer by ikhalil

Thank you every one. The problem is solved.

5 replies

1-Visitor
December 16, 2015

If you are doing this externally it has to be a POST

There is a lot of good content available on the REST API in this forum and on support.ptc.com, I recommend you do a search.

Also there is a dedicated section in the Java Doc.

5-Regular Member
December 16, 2015

Don't forget to check the box in the PlatformSubsystem under the Configuration section for "Allow Request Method Switch". If you don't do this all of your POSTs will be GETs instead and prevent you from exercising any services.

7-Bedrock
December 16, 2015

Hello Meghan,

My understanding was that "Allow Request Method Switch" allows you to replace POST with GET + "&method=post" parameter, which is outdated and discouraged practice left mainly for compatibility with legacy clients which couldn't send HTTP POST.

Please correct me if I'm wrong.

/ Constantine

5-Regular Member
December 17, 2015

Clarification: This is only if you are directly invoking the request within a browser and not from an external source.

7-Bedrock
December 16, 2015

Hello Ibrahim,

That's how you do it:

post-request.png

Regards,

Constantine

ikhalil1-VisitorAuthorAnswer
1-Visitor
December 17, 2015

Thank you every one. The problem is solved.

ikhalil1-VisitorAuthor
1-Visitor
December 17, 2015

I just added appKey with the link.