6011364

How to create an incident via API

Discussion created by 6011364 on Oct 15, 2014

We get regular questions about the API. Just sharing a quick example on how to create a new incident via API:

 

curl --digest -k -u "email:password" -H "Accept: application/xml" -H "Content-Type:text/xml" -d "<incident><name>Via API</name><priority>Medium</priority><requester><email>email adress</email></requester><description>New incident via API</description></incident>" -X POST https://api.samanage.com/incidents.xml

 

This creates a new incident with subject 'Via API'
Please see www.samanage.com/api for more information.

Outcomes