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

48 lines
949 B
HTTP

### Update entity type fields and groups
PUT {{url}}/api/crm/entity-types/{{entityTypeId}}/fields-and-groups
Content-Type: application/json
Authorization: Bearer {{token}}
{
"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"
}
]
}