I tried to post a new ticket via api but error happened. Did I do something wrong?
The "business_name" appears to be a custom field and hence has to be within a "custom_fields" block. We have an example in the documentation that shows the appropriate format.
curl -v -u user@yourcompany.com:test -H "Content-Type: application/json" -d '{ "description": "Details about the issue...", "subject": "Support Needed...", "email": "tom@outerspace.com", "priority": 1, "status": 2, "cc_emails": ["ram@freshdesk.com","diana@freshdesk.com"], "custom_fields" : { "category" : "Primary" } }' -X POST 'https://domain.freshdesk.com/api/v2/tickets'
Take a look at the second example at the link for more details - http://developers.freshdesk.com/api/#create_ticket
Join the Community
Sign in to the Community
Social Login
Login for Freshworks Employees Login with LinkedInEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.