Files
web-crm.mcmed.ru/backend/artifacts/constructor.http
Viktoria Polyakova 4fb101c5db Init
2026-01-25 08:57:38 +00:00

73 lines
1.5 KiB
HTTP

### Create entity type
POST {{url}}/api/crm/constructor/create-entity-type
Content-Type: application/json
Authorization: Bearer {{token}}
{
"name": "Object",
"entityCategory": "universal",
"fieldGroups": [
{
"id": {{fieldGroupId}},
"name": "Details",
"sortOrder": 0,
"state": "created"
}
],
"fields": [
{
"id": 4201,
"name": "Field name",
"type": "text",
"sortOrder": 1,
"fieldGroupId": {{fieldGroupId}},
"state": "created"
},
{
"id": 4202,
"name": "Field name",
"type": "select",
"sortOrder": 1,
"fieldGroupId": {{fieldGroupId}},
"options": [
{
"id": 1,
"label": "Option 1",
"sortOrder": 0,
"state": "created"
},
{
"id": 2,
"label": "Option 2",
"sortOrder": 1,
"state": "created"
}
],
"state": "created"
}
],
"featureIds": [1, 2, 3],
"taskSettingsActiveFields": ["planned_time", "board_name", "start_date", "end_date", "description", "subtasks"],
"linkedEntityTypes": [
{
"sortOrder": 0,
"targetEntityTypeId": "{{entityTypeId}}"
}
],
"linkedEntityCategories": [{
"entityCategory": "contact",
"entityTypeName": "Partner contact",
"sectionName": "Partner contacts"
}, {
"entityCategory": "company",
"entityTypeName": "Partner company",
"sectionName": "Partner companies"
}],
"section": {
"name": "Objects",
"view": "board",
"icon": "crown"
}
}