I am trying create a request using API and curl.
In description field, request will have slash "/" and it is possible have other like :, \ like "C:\ does not have space""
But, if I use special caracteres I get error to create request.
curl -d "scope=sdpodapi&authtoken=afa32af4d010a910ed524526d99d8b99&OPERATION_NAME=ADD_REQUEST&INPUT_DATA={operation:{Details:{REQUESTER:Monitoramento Zabbix, SUBJECT:Notificação Automática - DeployIT, REQUESTTEMPLATE:ZABBIX_NOTIFICACAO_AUTOMATICA, DESCRIPTION:
C:\ is full}}}"
http://sdpondemand.manageengine.com/api/json/request
{"operation":{"name":"ADD_REQUEST","result":{"status":"Failed","message":"JSON_PARSE_ERROR","error_code":4001,"input_field":"INPUT_DATA"}}}[root@srv-zabbix alertscripts]#
curl -d "scope=sdpodapi&authtoken=afa32af4d010a910ed524526d99d8b99&OPERATION_NAME=ADD_REQUEST&INPUT_DATA={operation:{Details:{REQUESTER:Monitoramento Zabbix, SUBJECT:Notificação Automática - DeployIT, REQUESTTEMPLATE:ZABBIX_NOTIFICACAO_AUTOMATICA, DESCRIPTION:
C_ is full}}}"
http://sdpondemand.manageengine.com/api/json/request
{"operation":{"name":"ADD_REQUEST","result":{"status":"Success","message":"Request added successfully"},"Details":{"WORKORDERID":"1107","LONG_REQUESTID":"11710000001083005","REQUESTER":"Monitoramento Zabbix","CREATEDBY":"Wagner Pinheiro","CREATEDTIME":"1463357061359","DUEBYTIME":"-1","RESPONDEDTIME":"0","COMPLETEDTIME":"0","SHORTDESCRIPTION":"ESCR_IPTION","DELETED_TIME":"","TIMESPENTONREQ":"0hrs 0min","SUBJECT":"Notificação Automática - DeployIT","REQUESTTEMPLATE":"ZABBIX_NOTIFICACAO_AUTOMATICA","TEMPLATEID":"11710000001074271","MODE":"","SLA":"","DEPARTMENT":"","SITE":"Not in any site","CATEGORY":"","SUBCATEGORY":"","ITEM":"","TECHNICIAN":"","STATUS":"Open","STOPTIMER":"false","ISPENDING":"true","PRIORITY":"","LEVEL":"","HASATTACHMENTS":"false","HASNOTES":"false","HASCONVERSATION":"false","GROUP":"","UDF_CHAR1":"","ATTACHMENTS":[]}}}[root@srv-zabbix alertscripts]#