Is it possible to retrieve all of the Knowledge Base Answer IDs using the API

Infos:

  • Used Zammad version: 5.2.x
  • Used Zammad installation type: source
  • Operating system: REHL
  • Browser + version: Latest Chrome and Edge tested

Expected behavior:

Actual behavior:

  • The above API endpoint seems to return all of the answer ids except the last 3 KB answers I have created.

When I check postgresql, I can see I have 205 KB answers, but the API returns 202 ids.

“answer_ids”:[14,32,24,18,17,16,33,11,25,22,19,31,78,13,85,94,46,55,29,72,87,69,27,67,39,81,26,70,51,210,50,107,198,106,108,58,109,34,86,160,105,95,36,53,98,100,101,102,103,104,15,12,90,64,63,112,163,114,96,83,47,111,44,161,91,97,164,88,224,48,92,42,43,40,76,30,89,56,79,59,82,74,75,77,57,61,41,130,21,45,52,176,131,119,189,126,157,123,124,127,129,181,175,121,207,162,168,191,146,166,167,84,199,173,159,133,141,150,193,148,154,145,115,120,151,178,140,139,187,142,143,65,135,152,172,201,147,60,202,73,110,138,156,118,136,186,158,174,184,177,171,208,125,37,134,215,223,213,211,225,170,216,180,165,122,35,205,149,132,99,182,183,222,219,179,185,38,153,155,221,144,137,226,195,204,206,190,93,220,192,194,197,212,196,227,217,49,214,200,71,116,218]

All of the above are fine, but I have 228,229 and 230 which is not being returned and I have checked that they definitely exist…

When I search the KB I can find these KB answers no problem…

I have a feeling that this has something to do with the permissions but I can’t get my head around why it is the only last 3 that is not being returned.

Not sure what I am missing and because there is a very limited information about KB endpoint I am a little stuck. I would appreciate any help…

Steps to reproduce the behavior:

  • Not sure if this can be reproduced or is it just a problem with my environment.

OK… It seems like after precisely 10 seconds of posting this, I was able to resolve this issue by using below rails command:

zammad run rails r 'Cache.clear'

It seems like it is a cache issue and running the above rails command clears zammad’s cache.

Only question I have now is, Is it possible to force a non-cached version using the API?