EntityConfig
Questi contenuti non sono ancora disponibili nella tua lingua.
Manage entity configurations, which represent custom settings or metadata for entities.
You can create, update, delete, and search for entity configs with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Sezione intitolata “Operations” POST /v2/entity-config/index
Returns a paginated and filterable list of entity configs.
Use POST to allow complex filters via JSON payload.
Request Body
Sezione intitolata “Request Body ”Parameters for searching entity configs
object
object
The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order
The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.
Example
{ "filter": { "key": "custom_setting" }, "per-page": 10, "page": 1, "sort": "key"}
Responses
Sezione intitolata “ Responses ”List of entity configs
object
Example
{ "entity_config_id": "cfg-1", "key": "custom_setting", "entity_id": "ent-1", "value": [ "A", "B" ]}
Headers
Sezione intitolata “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
POST /v2/entity-config/create
Create a new entity config by providing the required details.
Request Body required
Sezione intitolata “Request Body required ”Entity config object to be created
object
Example
{ "key": "custom_setting", "entity_id": "ent-1", "value": [ "A", "B" ]}
Responses
Sezione intitolata “ Responses ”Entity config created successfully
object
Example
{ "entity_config_id": "cfg-2", "key": "custom_setting", "entity_id": "ent-1", "value": [ "A", "B" ]}
GET /v2/entity-config/view/{id}
Retrieve an entity config by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the entity config to retrieve
Responses
Sezione intitolata “ Responses ”Entity config found
object
Example
{ "entity_config_id": "cfg-1", "key": "custom_setting", "entity_id": "ent-1", "value": [ "A", "B" ]}
Entity config not found
DELETE /v2/entity-config/delete/{id}
Delete an entity config by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the entity config to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Entity config deleted successfully
If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned
PUT /v2/entity-config/update/{id}
Update an existing entity config by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the entity config to update
Request Body required
Sezione intitolata “Request Body required ”Entity config object with updated data
object
Example
{ "value": [ "C", "D" ]}
Responses
Sezione intitolata “ Responses ”Entity config updated successfully
object
Example
{ "entity_config_id": "cfg-1", "value": [ "C", "D" ]}
Entity config not found