freshworks / fresh-samples

Samples of code created by freshdesk
183 stars 182 forks source link

Ruby create ticket #33

Closed yovasx2 closed 8 years ago

yovasx2 commented 8 years ago

The API response:

{"description":"Validation failed","errors":[{"field":"status","message":"Value set is of type String.It should be one of these values: '2,3,4,5,6,7'","code":"datatype_mismatch"}]}

Due to the status: '2' conversion to json, what is "staus": "2" and not an integer