Hi all,
I try to change name of knowledge base using Python SDK but it is coming error 400. Sorry if this is noob question, I am still learning how to use the patch. I use the Tokyo region.
I try to call /api/v2/knowledge/knowledgebases/{knowledgeBaseId} like this:
import PureCloudPlatformClientV2
api = PureCloudPlatformClientV2.KnowledgeApi()
body = {
"name": "New Knowledge Base Name"
}
api.patch_knowledgebase("12345-abcde-67890", body)
The response is:
{
"message": "Bad Request",
"code": "bad.request",
"status": 400
}
Maybe the body is wrong? I think I forgot some field.