I'm trying to send a POST request to the ManageEngine Service Desk API using a data connector tied to my on-prem server. While I can successfully create tickets using Postman, the same request fails when I attempt it through the PA connector. The main difference I noticed is that Postman wraps its JSON payload with `input_data:`. It looks something like this: `input_data={ "request": { "subject": "New Vulnerability Detected", ... }}`.
In Postman, I can set this up by using a `key` called `input_data` with the JSON as its value, which formats it correctly as application/x-www-form-urlencoded. However, I can't find a way to do this with the connector. I've tried various versions of the request and stringified JSON objects, but the response is never formatted correctly. The connector seems to be able to communicate with the server because my GET requests work fine, but I can't get past the `input_data` issue. Maybe there's a limitation with Swagger or something else going on. If you need more context or additional details, just let me know!
2 Answers
It sounds like you're not sending the API auth key with the connector. Can you double-check if that's included in your request headers? Also, what exact error message do you see when the call fails? That might help pinpoint the issue.
This isn't the best sub for API-specific questions, but casting a wide net is smart! It could be helpful to check if your connector has settings to handle forms differently. Have you looked for any specific sub dedicated to the software you're using?
Related Questions
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String