Skip to main content

Get the type of fields from the API

  • May 21, 2018
  • 1 reply
  • 83 views

 Hi all,


I retrieved all the ticket fields thanks to the following call :

"/api/v2/ticket_fields"

but we don't get the type of each field.

When creating a new ticket by passing these fields, we get the following error message:

"Value set is of type String.It should be a/an Integer"


Can we retrieve this information ?


Regards,

Hugo

This topic has been closed for replies.

1 reply

aravind.sundararajan
Skilled Expert
Forum|alt.badge.img+12

Hello Hugo,


The API response bears the type of each ticket field associated with the variable type.The system fields like agent, source, priority will have the values as default_source, default_priority and the custom ticket fields will be mentioned as custom_dropdown where dropdown denotes the type of the field.


You can find the type for the default fields here.


Cheers!