最近搜索


没有最近搜索

Search API



已于 2023年4月05日 发布

I would like to use "Search Articles" or "Unified Search" APIs to list articles that are also in "Draft" status. Is this possible somehow? Are you considering adding this functionality?

Alternatively, is there any other solution to query Draft and Published Articles based on their Title or Content?


0

2

2 条评论

Hi Andreas,

You could also use a List Articles endpoint then filter the results by `"draft" == true` . The pseudo-code could look like this:

draft_articles = []
url = "https://example.zendesk.com/api/v2/help_center/articles"
articles = request(url) # function includes pagination
for article in articles:
..if article['draft'] == True:
....draft_articles.append(article)
save('draft_articles.json', draft_articles)

 

0


Hi Andreas! Since our Search API is intended for both end-users, agents, and admins, providing responses that aren't published is not part of the expected behavior. That's not to say it wouldn't be something that could be developed in the future, so I would recommend posting in the Guide feedback forum following the recommendations in this post to give the product team the most useful information about your situation.

0


登录再写评论。

找不到所需的内容?

新建帖子