Hello community.
I`m trying to create a custom object “Enfant” with API
Example of properties :
nom_enfant (internal value / the kids name) - Nom de l’enfant (the human-readable property label)
prenom_enfant (internal value)- Prénom de l’enfant (the human-readable property label)
But I get an error and I don’t know how to solve it … What should I write in “primary Display property” ?
Please advise.
Thank you and best regards.
Hi @Mathildehyp
Thank you for reaching out!
I noticed you’re probably using your HubSpot in French, I wanted to let you know that we have a FR Community you can access by changing your language in your settings via the language selector at the top left.
Regarding your API response, I want to tag some of our experts here - @Teun @himanshurauthan @miljkovicmisa do you know what could be happening here?
Thank you!
Best
Tiphaine
Teun
January 6, 2022, 10:54am
3
Hi @TitiCuisset ,
Your body of your request probably needs to look something like this:
{
"labels": {
"singular": "Enfant",
"plural": "Enfants"
},
"requiredProperties": [
"nom_enfant"
],
"searchableProperties": [
"nom_enfant",
"prenom_enfant"
],
"name": "enfant",
"primaryDisplayProperty": "nom_enfant",
"secondaryDisplayProperties": [
"prenom_enfant"
],
"properties": [
{
"name": "nom_enfant",
"label": "Nom de l'enfant",
"isPrimaryDisplayLabel": true
},
{
"name": "prenom_enfant",
"label": "Prénom de l'enfant",
"type": "string",
"fieldType": "text"
}
],
"associatedObjects": [],
"metaType": "PORTAL_SPECIFIC"
}