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


サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿