Labels

List Labels

URL:

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

Example

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

curl -u joe@acme.com:joe http://www.ihelpdesk.com/desktop/api/acme/labels

Response

<labels>
  <label>
    <id>1322623923854043</id>
    <name>label1</name>
    <color>#000080</color>
    <font>0</font>
  </label>
</labels>

In this example, label’s ID is 1322623923854043 for label1.

Delete Labels

URL:

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

HTTP Method: DELETE

Example

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

curl -u joe@acme.com:joe -X DELETE http://www.ihelpdesk.com/desktop/api/acme/labels/1322623923854043

Apply Label to Ticket

URL:

http://www.ihelpdesk.com/desktop/api/{SITE_NAME}/labels/{LABEL_ID}/apply-to/{TICKET_ID}

HTTP Method: PUT

Example

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

curl -u joe@acme.com:joe -X PUT http://www.ihelpdesk.com/desktop/api/acme/labels/1322623923854043/apply-to/1322590922573033