Hello community.
I`m trying to create a custom object with API(POST/crm-object-schemas/v3/schemas)
I get error when I specify property type “number” or “date”.(only “string” works fine.)
Please advise.
Thank you and best regards.
error message
{
“status”: “error”,
“message”: “Unexpected property type ‘date’, expected one of: [string, object_coordinates, json]”,
“correlationId”: “5caa8194-4a96-4f6f-b832-2e373b25ba7f”,
“category”: “VALIDATION_ERROR”
}
request (curl)
curl --location --request POST ‘https://api.hubapi.com/crm-object-schemas/v3/schemas?hapikey={ API_KEY }’ \
--header ‘Content-Type: application/json’ \
--data-raw '{
“name”: “shipment”,
“labels”: {
“singular”: “出荷”,
“plural”: “出荷”
},
“primaryDisplayProperty”: “name”,
“secondaryDisplayProperty”: [
“code”,
“unit_price”
],
“requiredProperties”: [
“name”,
“code”,
“unit_price”
],
“searchableProperties”: [
“name”,
“code”,
“unit_price”
],
“properties”: [
{
“name”: “no”,
“label”: “出荷伝票No”,
“hasUniqueValue”: true,
“type”: “string”,
“displayOrder”: 1
},
{
“name”: “status”,
“label”: “ステータス”,
“type”: “string”
},
{
“name”: “date”,
“label”: “出荷予定日”,
“type”: “date”
}
]
}’
