Update a configuration
const url = 'https://example.com/api/admin/config/example';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"TYPES":"Article,Page,Asset","SECURITY":{"contributors":["example"],"maintainers":["example"],"viewers":["example"]},"IS_PUBLIC":false,"ENABLE_GRAPHQL":true,"GENERATE_EMBEDDINGS":false,"CACHE_INDEX_FIELDS":["example"],"ai":{"default_settings":{"CONTEXT_DOCUMENT_NUMBER":"example","RELEVANT_DOCUMENT_RETURN_FIELDS":["example"],"HISTORY_RECENT_NUMBER":"example","HISTORY_RELEVANT_NUMBER":"example","EMBED_CHUNK_SIZE":"example","EMBED_CHUNK_OVERLAP":"example"}},"CUSTOM_FIELDS":{"additionalProperty":"example"},"SYNONYMS":{"additionalProperty":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/admin/config/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "TYPES": "Article,Page,Asset", "SECURITY": { "contributors": [ "example" ], "maintainers": [ "example" ], "viewers": [ "example" ] }, "IS_PUBLIC": false, "ENABLE_GRAPHQL": true, "GENERATE_EMBEDDINGS": false, "CACHE_INDEX_FIELDS": [ "example" ], "ai": { "default_settings": { "CONTEXT_DOCUMENT_NUMBER": "example", "RELEVANT_DOCUMENT_RETURN_FIELDS": [ "example" ], "HISTORY_RECENT_NUMBER": "example", "HISTORY_RELEVANT_NUMBER": "example", "EMBED_CHUNK_SIZE": "example", "EMBED_CHUNK_OVERLAP": "example" } }, "CUSTOM_FIELDS": { "additionalProperty": "example" }, "SYNONYMS": { "additionalProperty": "example" } }'Updates an existing repository configuration
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Configuration ID
Request Body
Section titled “Request Body”object
Comma-separated list of content types
Example
Article,Page,AssetSecurity configuration
object
Contributor roles/users
Maintainer roles/users
Viewer roles/users
Whether repository allows public access to published content
Example
falseWhether GraphQL API is enabled
Example
trueWhether to generate AI embeddings for content
Example
falseAdditional fields to index for search
AI/embedding settings
object
object
Custom field mappings
object
Search synonyms configuration
object
Responses
Section titled “Responses”Configuration updated successfully
object
Repository ID
Repository namespace/name used as Redis key prefix
Comma-separated list of content types
Repository security configuration
object
Contributor roles/users
Maintainer roles/users
Viewer roles/users
Storage configuration
object
Storage bucket name
Storage provider (e.g., oci, s3, azure)
Whether repository allows public access
Whether GraphQL API is enabled
Whether to generate AI embeddings
Additional fields to index
AI/embedding settings
object
object
Number of context documents for AI
Fields to return for relevant documents
Number of recent history items
Number of relevant history items
Chunk size for embeddings
Chunk overlap for embeddings
Custom field mappings
object
Search synonyms configuration
object
Oracle Content URL (legacy)
Azure base URL (legacy)
IDCS URL for auth (legacy)
OAuth scope (legacy)
Example
{ "id": "repo-123", "CACHE_ROOT": "my-repository", "TYPES": "Article,Page,Asset", "IS_PUBLIC": false, "ENABLE_GRAPHQL": true, "GENERATE_EMBEDDINGS": false}