Change keys of an embedding configuration's settings (JSON Merge Patch on config).
PATCH/api/v1/embedding-configs/{embedding_config_id}settings:write
Sends only the keys to change: a key sent replaces that key's value, a key sent as null returns to its default, and every other stored key is kept. Turning on a generate_* switch (or resetting one whose default is on) makes the Portal embed every document with no embedding yet, which can be paid usage for the whole corpus. The embedding model is never changed here. Needs Edit Clustering Embedding Configs.
| Scope | settings:write (sensitive) |
| Asynchronous | No |
| MCP tool | update_embedding_config |
| Portal permissions | edit_clustering_embedding_configs |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
embedding_config_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | EmbeddingConfigPatchInput |
application/merge-patch+json | EmbeddingConfigPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json EmbeddingConfig or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
EmbeddingConfig
| Field | Type | Required | Description |
|---|---|---|---|
config | object | Required | The settings object. A credential key appears as has_<key>, never with its value. |
database_type | string | Required | |
datasource | string | Required | |
effective_switches | EmbeddingSwitches or null | Required | What the embedding sweep does today; null for a configuration that is not the document one. |
elastic_query_string | string or null | Required | |
embedding_config_id | string | Required | |
embedding_model | string | Required | |
field_name | string | Required | |
is_document | boolean | Required | True for the document configuration the embedding sweep reads. |
metadata_columns | array of string | Required | |
name | string | Required | |
type | string | Required |
EmbeddingConfigPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
config | EmbeddingConfigPatchValueInput or null | Optional | The settings keys to change. |
database_type | string or null | Optional | |
datasource | string or null | Optional | |
effective_switches | object or null | Optional | |
elastic_query_string | string or null | Optional | |
embedding_config_id | string or null | Optional | |
embedding_model | string or null | Optional | |
field_name | string or null | Optional | |
is_document | boolean or null | Optional | |
metadata_columns | array of string or null | Optional | |
name | string or null | Optional | |
type | string or null | Optional |
EmbeddingConfigPatchValueInput
| Field | Type | Required | Description |
|---|---|---|---|
count_vectorizer_config | object or null | Optional | |
generate_embeddings | boolean or null | Optional | |
generate_image_embeddings | boolean or null | Optional | |
generate_metadata_embeddings | boolean or null | Optional | |
hbdscan_config | object or null | Optional | |
language | string or null | Optional | |
lemmatization_config | object or null | Optional | |
recreate_embeddings | boolean or null | Optional | |
recreate_raw_content | boolean or null | Optional | |
reduce_outliers | boolean or null | Optional | |
representation_model | string or null | Optional | |
rerank | object or null | Optional | |
small_n_clustering_config | object or null | Optional | |
tfidf_vectorizer_config | object or null | Optional | |
umap_config | object or null | Optional | |
upload_doc_parts | boolean or null | Optional |
EmbeddingSwitches
| Field | Type | Required | Description |
|---|---|---|---|
generate_embeddings | boolean | Required | |
generate_image_embeddings | boolean | Required | |
generate_metadata_embeddings | boolean | Required |