Using custom_field in Create Ticket API

I want to create a new custom_field by the name ''appname".I am using Advanced Rest Client for hitting API Requests. In the header part I am entering username and password in Base64 and in the Content-Type:application:json.This is the format of my Payload:

{

  "helpdesk_ticket":

                {

                 "description":"Details...",

                 "subject":"Support Needed...",

                 "email":"tom@outerspace.com",

                 "priority":1,

                 "status":2,

                  "custom_fields":{"appname":"u2opia"}

                }

}

But the response either shows up a 500 Internal server error or

 {

"logout": "success"

}

Please suggest how to include a custom_field while creating a ticket.

1 Comment

Currently, you cannot create custom fields via API, they need to be created via the portal. Once created, you can create new tickets that contain that custom field.


If you are using the API v1, then please follow this guide - https://support.freshdesk.com/support/solutions/articles/205831


If you are using API v2 (still in beta) then please look at this guide - https://support.freshdesk.com/support/solutions/articles/216548



Login or Signup to post a comment