Update entity by name
Update an entity by its name. Optionally change the entity's name.
Example:
```
PUT /apis/entities/v2/workspaces/default/entities/customization_config/my-config
{
"data": {
"target_id": "llama-2-7b",
"training_options": {"learning_rate": 0.02}
}
}
```
Path parameters
workspace
entity_type
name
Query parameters
parent
Parent entity ID for nested entities
Request
This endpoint expects an object.
data
Updated entity-specific data
new_name
Updated entity name (optional). 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).
project
The name of the project associated with this entity
expected_db_version
Optional database version for optimistic locking. Update only succeeds if current version matches.
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