Get the type of fields from the API

  • 21 May 2018
  • 1 reply
  • 53 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 comments

1 reply

Userlevel 4
Badge +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!