Get articles call does not include latest label updates | The place for Zendesk users to come together and share
Skip to main content
September 29, 2021
Question

Get articles call does not include latest label updates

  • September 29, 2021
  • 3 replies
  • 25 views

I'm using cursor-based pagination for getting all the articles.

GET / api / v2 / help_center / articles? locale = en-us& page [size] = 100.

In the result, I have the articles, but some of the labels are missing.

My observations:

1) Labels are not included if you added them and save the article without editing the text of the article. I assume that it is not updating because the Publication status is not changing. Am I right?

2) If you edited labels of the article and edited text of the article that labels are returned correctly but if the call is made approx. in 1 hour later. Why do we have such a delay here?

However, when I'm using

GET /api/v2/help_center/articles/search.json?label_names=label1

it returns an valid article with newly updated article.

Could someone explain the logic behind this?

 

3 replies

Eric27
October 4, 2021

Hey There,

This is a really good callout and I don't think is expected behavior. I'm reaching out to the product team to get clarification on if this is a bug or not. I'll reach out with an update in the coming days.

Thanks for your insights!

Have a wonderful day!

Eric Nelson | Manager - Developer Advocacy

October 7, 2021

Hi Eric,

Are there any updates on this?

Eric27
October 14, 2021

Hey there,

Apologies for the delay. We've been doing some investigation and this does seem to be a bug. Do you mind if I move this into a ticket to get more details from you?

Have a wonderful day!

Eric Nelson | Manager - Developer Advocacy