Modify Unified Catalog Entity Type¶
POST /api/v1/unified_catalog/entity_type_cfg/{entity_type_uuid}/modify
Overview¶
Modify a unified catalog entity type.
Route Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| entity_type_uuid | string | Y | Entity type UUID |
Body Request Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Display name of the entity type Nullable: False Max Length: 128 |
|
| description | string | Description of the entity type Nullable: False Max Length: 512 |
|
| extraConfig | json | Extra configuration for the entity type in the current workspace Nullable: False |
|
| healthConfig | json | Always configurable for all types; system supports {"mode":"default"}, {"mode":"func","funcId":"xxx"}, {"mode":"disabled"}; other types support func/disabled; does not depend on backend readiness cleanup progressNullable: False |
|
| customProperties | string | DataSchema custom field YAML text appended to the entity type in the current workspace. It is recommended to have custom_properties as the top-level keyNullable: False |
|
| schemaDefine | string | DataSchema YAML text, only effective for custom types Nullable: False |
|
| viewDefine | string | UIView YAML text, only effective for custom types Nullable: False |
|
| extend | json | Extension fields Nullable: False |
Additional Parameter Notes¶
Path Parameter Description
| Parameter | Type | Required | Description |
|---|---|---|---|
| entity_type_uuid | string | Yes | Target entity type UUID |
Request Body Parameter Description
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | No | Display name of the entity type |
| description | string | No | Description of the entity type |
| extraConfig | json | No | Extra configuration in the current workspace |
| customProperties | string | No | DataSchema custom field YAML text appended to the entity type in the current workspace. It is recommended to have custom_properties as the top-level key |
| schemaDefine | string | No | DataSchema YAML text |
| viewDefine | string | No | UIView YAML text |
| extend | json | No | Extension fields |
Calling Notes
- Default types support modifying
extraConfigandcustomProperties. - All entity types support modifying
healthConfigat any time: system supportsdefault/func/disabled, other types supportfunc/disabled; does not depend on backend readiness cleanup progress. - Custom types can modify
name,description,schemaDefine,viewDefine, andextend, and can also modifyextraConfigandcustomPropertiessimultaneously. - It is recommended to pass the complete object for
extraConfig, rather than passing values in a partial patch manner. - It is recommended to pass a YAML text containing a top-level
custom_propertiesarray forcustomProperties; for compatibility with legacy calls, a top-level YAML array is also accepted. - Field names in
customPropertiesmust not conflict with fields in thepropertiesof the current entity type's DataSchema; fields are saved as YAML text, and comments are preserved as-is.
Request Example¶
curl 'https://openapi.truewatch.com/api/v1/unified_catalog/entity_type_cfg/cate_xxxx/modify' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"healthConfig":{"mode":"disabled"}}'