Skip to main content
Question

Custom fields in API

  • August 7, 2024
  • 1 reply
  • 107 views

bsmietana
Apprentice

Hi all,

Is it possible to pass nested objects as contact’s custom fields to Freshdesk API?

An example object would look as follows:

(simplified POST request to /api/v2/contacts)

{
    “body”: {

        “name”: “test name”,

        “unique_external_id”: “test_uuid”,

        “custom_fields”: {

            “objects”: [

                “object_1_id”: {

                    “id”: “object_1_id”,

                    “name”: “test name 1”

                },

                “object_2_id”: {

                    “id”: “object_2_id”,

                    “name”: “test name 2”

                },

            ]

        }

    }

}

 

Or is it only possible to pass simple JSON that would contain simple key: value pairs like object_1_id: id, object_1_name: name etc.?

Did this topic help you find an answer to your question?

1 reply

Sujitha Dhanaseelan
Community Manager
Forum|alt.badge.img+6

Greetings @bsmietana. Thanks for contacting Freshworks community. 

I understand your interest in using dependent fields for contacts. Unfortunately, at this time, it is not possible to use nested fields for contacts or companies in Freshdesk. However, I have submitted this as a feature request to our team. Thank you for sharing your feedback.

Thank you.
Sujitha Dhanaseelan.
Learn something new today, get recognized for your contributions, stay on top of product updates and build meaningful connections in our Freshdesk community. Fresh ideas, quality service.
 


Reply