Welcome to Developer Community. Thanks for your patience and apologies for the delayed response as we were occupied with the Freshworks Developer Summit.
I understand you are trying to add custom fields to a ticket. Freshdesk offers Ticket Fields API that allows you to perform these actions.