Language validation added to Knowledge API

A bug fix has been implemented for both V1 and V2 Knowledge APIs to improve language validation. Previously, the API did not validate whether the provided language was both supported by Ada and enabled for the client’s bot.

Now, when using the Knowledge API, the optional locale and language fields will be validated against:

  • Languages supported by Ada
  • Languages enabled for the client’s bot

If either field contains a value that is not supported by Ada or not enabled for the client’s bot, the API will return a 400 error. This validation is important because articles in unsupported languages do not contribute to improving your bot’s knowledge base. For a list of languages currently supported by Ada, see our supported languages documentation.