Issue about API to create request

Issue about API to create request

hi.

I am trying create a script to create request using API.


After some hours trying developer this script, I get success to connect token and send a http post, but I am receiving this return:

<operation name="ADD_REQUEST">
<result>
<status>Failed</status>
<message>POST_ONLY_URL</message>
<error_code>4001</error_code>
</result>
</operation>


This is my http request code:

https://sdpondemand.manageengine.com/api/request?authtoken=9f8aa34fb5f647d1e9dcbcb015192f63&Scope=sdpodapi&OPERATION_NAME=ADD_REQUEST&INPUT_DATA=<?xml version="1.0" encoding="UTF-8"?><Operation><Details><requester>Monitoramento Zabbix</requester><subject>[Notificação Automática - DeployIT]</subject><description>Mail Server is down</description><requesttemplate>ZABBIX_NOTIFICACAO_AUTOMATICA</requesttemplate></Details></Operation>

Someone has a bash script using curl that I can use like a sample.

Thanks.


                New to ADSelfService Plus?