Endpoint with valid JSON in body return FailedInput

Hi again,
I post valid JSON to endpoint [ { "Value": "my text" } ]
here is input mapping
obrazek
but it doesn’t work what’s wrong?
Response: 400 Bad Request,

 "Status": "FailedInput",
    "Link": "https://..?taskRunID=7289#history",
    "Message": "Task could not start. Endpoint data could not be parsed. Task finished with message: Task could not start. Endpoint data could not be parsed.",
    "Result": null

Hi,

the problem is that you are using GET method. This method doesn’t allow to send the body. You have to use query params in URL query string (Query string - Wikipedia).

In your case you send GET request to:

https://yoursite.integray.app/api/endpoint/company_slug/group_slug/endpoint_slug?Value=mytext

In case you would have more than one param separate them with &:

https://yoursite.integray.app/api/endpoint/company_slug/group_slug/endpoint_slug?Value=mytext&Value1=othertext

Just note that labels in query string are case sensitive.

1 Like

Oh yes, i understand, thank you for your help

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.