Update Ticket

Update Original Ticket

Update an original ticket, including its subject, description, status, priority and type.

URL:

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

HTTP Method: PUT

Content Type: application/xml

Request Body

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

Optional Fields:

<status>
   <id>0</id>
</status>
<type>
   <id>{TYPE_ID}</id>
</type>
<category>
   <id>{CATEGORY_ID}</id>
</category>
<create-date>{DATE like: 2011-11-29 13:22:02.0}</create-date>
<priority>{PRIORITY_ID}</priority>
<status>
   <id>{STATUS_ID}</id>
</status>
<assignee>{USER_ID}</assignee>

status : <status><id>{STATUS_ID}</id></status>

Name ID
Open 0
Pending 1
Resolved 2
Closed 3

type : <type><id>{TYPE_ID}</id></type>

Name ID
Request 0
Problem 1

priority : <priority>{PRIORITY_ID}</priority>

Name ID
Low 0
Normal 1
High 2
Urgent 3

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 PUT -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/1322690469076056

Update Ticket’s Comment

Update a ticket’s comment.

URL:

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

HTTP Method: PUT

Content Type: application/xml

Request Body

<comment>
   {COMMENT_BODY}
</comment>

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 PUT -d “<comment>comment is here</comment>” http://ihelpdesk.com/desktop/api/acme/comments/1322690469076056