Skip to main content

 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



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!