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


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물