Create a new entity
Create a new entity of the specified type in the given workspace.
If name is not provided, it will be auto-generated based on the entity type.
Example:
```
POST /apis/entities/v2/workspaces/default/entities/customization_config
{
"name": "my-config",
"data": {
"target_id": "llama-2-7b",
"training_options": {"learning_rate": 0.01}
}
}
```
Path parameters
workspace
entity_type
Request
This endpoint expects an object.
data
Entity-specific data (schema is opaque to entity store, validated by client SDK)
name
Entity name (optional - auto-generated if not provided). Name must start with a lowercase letter, be 2-63 characters, and contain only lowercase letters, digits, and hyphens (no consecutive hyphens, cannot end with a hyphen).
parent
Parent entity ID for nested entities
project
The name of the project associated with this entity
Response
Successful Response
entity_type
Entity type identifier
id
UUID identifier
workspace
Workspace identifier
name
Entity name
data
Entity data
created_at
Timestamp of entity creation
updated_at
Timestamp of last entity update
db_version
Database version of the entity for optimistic locking.
parent
Parent entity ID for nested entities
project
The name of the project associated with this entity
created_by
Principal id for entity creator
updated_by
Principal id for last entity update
Errors
422
Unprocessable Entity Error