# Update knowledge base entry **PATCH /v1/replicas/{replicaUUID}/knowledge-base/{knowledgeBaseID}** Updates a knowledge base entry with training content. This is the second step in the training process after creating an entry. You can provide "rawText" which is the content you want your replica to learn from (such as product information, company policies, or specialized knowledge). The system will automatically process this text and make it available for your replica to use when answering questions. The entry status will change to PROCESSING and then to READY once fully processed. ## Servers - https://api.sensay.io: https://api.sensay.io () ## Authentication methods - Organization service token - Organization service token & User ## Parameters ### Headers - **X-API-Version** (string) ### Path parameters - **knowledgeBaseID** (number) The unique identifier of the knowledge base entry - **replicaUUID** (string(uuid)) The replica unique identifier (UUID) ### Body: application/json (object) - **rawText** (string) The initial text content you want your replica to learn. This is the information you provide that will be processed and optimized for the knowledge base. - **generatedFacts** (array[string]) Generated facts related to the knowledge base entry. - **rawTextChunks** (array[object]) Segments of textual content that have been extracted from the original sources and split into smaller, manageable pieces. - **title** (string) Title for this knowledge base entry. Helps identify the content in listings. - **generatedTitle** (string) Auto-generated title for the knowledge base entry based on the content. - **summary** (string) A concise 1-2 sentence summary of rawText. - **language** (string) The language of the knowledge base entry content. Uses ISO 639-1 language codes for language-specific processing and retrieval. - **website** (object) - **youtube** (object) - **file** (object) - **error** (object) Error information related to the knowledge base entry ## Responses ### 200 Knowledge base entry updated successfully. #### Body: application/json (object) - **success** (boolean) Indicates if the knowledge base update was successful ### 400 Bad Request #### Body: application/json (object) - **success** (boolean) Indicates the status of the request - **error** (string) A text representation of the error - **error_code** (string) A machine-readable error code indicating the specific error condition. Used for programmatic error handling - **fingerprint** (string) A unique identifier of the event, useful for reporting - **request_id** (string) A unique identifier of the request, useful for reporting ### 401 Unauthorized #### Body: application/json (object) - **success** (boolean) Indicates the status of the request - **error** (string) A text representation of the error - **error_code** (string) A machine-readable error code indicating the specific error condition. Used for programmatic error handling - **fingerprint** (string) A unique identifier of the event, useful for reporting - **request_id** (string) A unique identifier of the request, useful for reporting ### 404 Not Found #### Body: application/json (object) - **success** (boolean) Indicates the status of the request - **error** (string) A text representation of the error - **request_id** (string) A unique identifier of the request, useful for reporting ### 415 Unsupported Media Type #### Body: application/json (object) - **success** (boolean) Indicates the status of the request - **error** (string) A text representation of the error - **error_code** (string) A machine-readable error code indicating the specific error condition. Used for programmatic error handling - **fingerprint** (string) A unique identifier of the event, useful for reporting - **request_id** (string) A unique identifier of the request, useful for reporting ### 500 Internal Server Error #### Body: application/json (object) - **success** (boolean) Indicates the status of the request - **error** (string) A text representation of the error - **fingerprint** (string) A unique identifier of the event, useful for reporting - **request_id** (string) A unique identifier of the request, useful for reporting - **inner_exception** (object) The inner exception [Powered by Bump.sh](https://bump.sh)