Skip to main content
15-Moonstone
October 10, 2024
Solved

Rest API Call

  • October 10, 2024
  • 1 reply
  • 1924 views

My requirement is to call a url using GET method and it has body as JSON with two parameters.I tried with almost all contentloadersfunctions available but it is throwing error as Invalid API key.It is actually a No Auth call.Please help me how to achieve this.

 

 

Note: I tried using Postman and I am getting result json when tried GET request with input body as json

Best answer by Rocko

You can create an extension yourself then if you're allowed to. It's literally one method that needs to be copied and extended by two lines.

You can create a ticket with support but most probably they will tell you the same.

Again, check first if this really is the issue because the error message doesn't fit the problem description.

1 reply

16-Pearl
October 10, 2024

Hi @krishnakomal123  Can you take a look at the below article?

https://www.ptc.com/en/support/article/CS329281

15-Moonstone
October 10, 2024

I need to make GetJSON() request but there is no parameter to provide body as content as the snippet doesnt allow it.

 

If I execute the service ,it is giving error.

Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
October 11, 2024

You can create an extension yourself then if you're allowed to. It's literally one method that needs to be copied and extended by two lines.

You can create a ticket with support but most probably they will tell you the same.

Again, check first if this really is the issue because the error message doesn't fit the problem description.