This commit is contained in:
Viktoria Polyakova
2026-01-25 08:57:38 +00:00
commit 4fb101c5db
7657 changed files with 497012 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
### Get entity type
GET {{url}}/api/crm/entity-types/{{entityTypeId}}
Content-Type: application/json
Authorization: Bearer {{token}}
### Get entity types
GET {{url}}/api/crm/entity-types
Content-Type: application/json
Authorization: Bearer {{token}}
### Delete entity type
DELETE {{url}}/api/crm/entity-types/321
Content-Type: application/json
Authorization: Bearer {{token}}
### Update entity type
PUT {{url}}/api/crm/entity-types/{{entityTypeId}}
Content-Type: application/json
Authorization: Bearer {{token}}
{
"id": {{entityTypeId}},
"name": "Deal",
"cardView": "fields_and_notes",
"fieldGroups": [
{
"id": {{fieldGroupId}},
"name": "Details",
"sortOrder": 0,
"state": "created"
}
],
"fields": [
{
"id": 4201,
"name": "Field name",
"type": "text",
"sortOrder": 1,
"fieldGroupId": {{fieldGroupId}},
"state": "updated"
},
{
"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": [],
"section": {
"name": "Deals",
"view": "board",
"icon": "crown"
}
}