KnowledgeBase Update API
# support
a
Hello, How can we update a knowledgebase by API? Based on documentation there is an endpoint for PATCH, but is not supporting parameters, only "id". Thank you!
v
@Alex Hello! To update a knowledgebase via an API that only supports the "id" parameter with a PATCH request, you would typically send the update payload in the body of the request. The "id" parameter is used to specify which knowledgebase entry you want to update, and the body of the PATCH request would contain the details of the updates you wish to make. Here's a general outline of how you might structure your PATCH request: 1. Include the "id" of the knowledgebase entry you want to update as a parameter in the URL or as part of the endpoint. 2. In the body of the request, include the fields and values that you want to update. This is usually in JSON format. 3. Set the appropriate headers for your request, such as
Content-Type: application/json
. 4. Send the PATCH request to the API endpoint. If you need specific instructions or if there's a particular field you want to update and you're not sure how to include it in the request, please let me know, and I can provide more detailed guidance. If the documentation does not provide enough information on how to structure the body of the PATCH request, you may need to ask support for more info on this.
You can continue this conversation by mentioning me in the message.
s
@Alex you cannot update KB file, instead you have to delete the previous one and reupload the complete file again with updated content to use it. Do let me know if you require further help.
a
@Shubham Bajaj I tried to PATCH now with new filesIds and it worked. KB ID is ab0dcf77-240f-4db8-9620-94dd2e1cd19c . Scenario: upload a file, patch it to KB. If I need to change that file, I delete it and update a new one. Right?
2 Views