Create TicketΒΆ

URL:

http://www.ihelpdesk.com/desktop/api/{SITE_NAME}/tickets

HTTP Method: POST

Content Type: application/xml

Request Body

<ticket>
   <subject>{TICKET_SUBJECT}</subject>
   <description>{TICKET_BODY}</description>
</ticket>

Optional Fields

status : <status>{STATUS_CODE}</status>

Name Code
Open 0
Pending 1
Resolved 2
Closed 3

type : <type>{TYPE_CODE}</type>

Name Code
Request 0
Problem 1

Example

Suppose your iHelpdesk site name is acme, with user name being joe@acme.com and password being joe.

curl -H “Content-Type: application/xml” -u joe@acme.com:joe -X POST -d “<ticket> <subject>my first ticket</subject> <description>something goes wrong.</description><status><id>0</id></status><type><id>0</id></type> </ticket>” http://ihelpdesk.com/desktop/api/acme/tickets