Skip to main content

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.

Scopesettings:write (sensitive)
AsynchronousNo
MCP toolupdate_embedding_config
Portal permissionsedit_clustering_embedding_configs

Parameters​

NameInTypeRequiredDescription
embedding_config_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonEmbeddingConfigPatchInput
application/merge-patch+jsonEmbeddingConfigPatchInput

Responses​

StatusDescriptionBody
200Success.application/json EmbeddingConfig or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

EmbeddingConfig​

FieldTypeRequiredDescription
configobjectRequiredThe settings object. A credential key appears as has_<key>, never with its value.
database_typestringRequired
datasourcestringRequired
effective_switchesEmbeddingSwitches or nullRequiredWhat the embedding sweep does today; null for a configuration that is not the document one.
elastic_query_stringstring or nullRequired
embedding_config_idstringRequired
embedding_modelstringRequired
field_namestringRequired
is_documentbooleanRequiredTrue for the document configuration the embedding sweep reads.
metadata_columnsarray of stringRequired
namestringRequired
typestringRequired

EmbeddingConfigPatchInput​

FieldTypeRequiredDescription
configEmbeddingConfigPatchValueInput or nullOptionalThe settings keys to change.
database_typestring or nullOptional
datasourcestring or nullOptional
effective_switchesobject or nullOptional
elastic_query_stringstring or nullOptional
embedding_config_idstring or nullOptional
embedding_modelstring or nullOptional
field_namestring or nullOptional
is_documentboolean or nullOptional
metadata_columnsarray of string or nullOptional
namestring or nullOptional
typestring or nullOptional

EmbeddingConfigPatchValueInput​

FieldTypeRequiredDescription
count_vectorizer_configobject or nullOptional
generate_embeddingsboolean or nullOptional
generate_image_embeddingsboolean or nullOptional
generate_metadata_embeddingsboolean or nullOptional
hbdscan_configobject or nullOptional
languagestring or nullOptional
lemmatization_configobject or nullOptional
recreate_embeddingsboolean or nullOptional
recreate_raw_contentboolean or nullOptional
reduce_outliersboolean or nullOptional
representation_modelstring or nullOptional
rerankobject or nullOptional
small_n_clustering_configobject or nullOptional
tfidf_vectorizer_configobject or nullOptional
umap_configobject or nullOptional
upload_doc_partsboolean or nullOptional

EmbeddingSwitches​

FieldTypeRequiredDescription
generate_embeddingsbooleanRequired
generate_image_embeddingsbooleanRequired
generate_metadata_embeddingsbooleanRequired