Skip to content

EntityConfig

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
POST
/v2/entity-config/index

Returns a paginated and filterable list of entity configs.
Use POST to allow complex filters via JSON payload.

Parameters for searching entity configs

object
filter
object
entity_config_id
string
key
string
entity_id
string
value
array
per-page
integer
default: 100 >= 1
page
integer
default: 1 >= 1
sort

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

string
history

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.

boolean
Example
{
"filter": {
"key": "custom_setting"
},
"per-page": 10,
"page": 1,
"sort": "key"
}

List of entity configs

Array<object>
object
entity_config_id
string
key
string
entity_id
string
value
array
Example
{
"entity_config_id": "cfg-1",
"key": "custom_setting",
"entity_id": "ent-1",
"value": [
"A",
"B"
]
}
X-Pagination-Current-Page
integer

Current page

X-Pagination-Page-Count
integer

Total number of pages

X-Pagination-Per-Page
integer

Number of items per page

X-Pagination-Total-Count
integer

Total number of items

POST
/v2/entity-config/create

Create a new entity config by providing the required details.

Entity config object to be created

object
entity_config_id
string
key
string
entity_id
string
value
array
Example
{
"key": "custom_setting",
"entity_id": "ent-1",
"value": [
"A",
"B"
]
}

Entity config created successfully

object
entity_config_id
string
key
string
entity_id
string
value
array
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.

id
required
string format: uuid

ID of the entity config to retrieve

Entity config found

object
entity_config_id
string
key
string
entity_id
string
value
array
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.

id
required
string format: uuid

ID of the entity config to delete

force
boolean

Force the deletion of the entity and all related entities

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.

id
required
string format: uuid

ID of the entity config to update

Entity config object with updated data

object
entity_config_id
string
key
string
entity_id
string
value
array
Example
{
"value": [
"C",
"D"
]
}

Entity config updated successfully

object
entity_config_id
string
key
string
entity_id
string
value
array
Example
{
"entity_config_id": "cfg-1",
"value": [
"C",
"D"
]
}

Entity config not found