Create custom object schema
curl --request POST \
--url https://api.openint.dev/v0/unified/crm/metadata/objects \
--header 'Content-Type: application/json' \
--header 'x-apikey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"labels": {
"singular": "<string>",
"plural": "<string>"
},
"primary_field_id": "<string>",
"fields": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"is_required": true,
"default_value": "<string>",
"group_name": "my group",
"type": "text",
"precision": 123,
"scale": 123,
"options": [
{
"label": "Option 1",
"value": "option_1",
"description": "<string>",
"hidden": true
}
],
"raw_details": {}
}
]
}'
{
"id": "<string>",
"name": "<string>"
}
Successful response
The response is of type object
.
curl --request POST \
--url https://api.openint.dev/v0/unified/crm/metadata/objects \
--header 'Content-Type: application/json' \
--header 'x-apikey: <api-key>' \
--header 'x-connection-id: <api-key>' \
--data '{
"name": "<string>",
"description": "<string>",
"labels": {
"singular": "<string>",
"plural": "<string>"
},
"primary_field_id": "<string>",
"fields": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"is_required": true,
"default_value": "<string>",
"group_name": "my group",
"type": "text",
"precision": 123,
"scale": 123,
"options": [
{
"label": "Option 1",
"value": "option_1",
"description": "<string>",
"hidden": true
}
],
"raw_details": {}
}
]
}'
{
"id": "<string>",
"name": "<string>"
}