Retrieving Category and Section names in Articles API

4 댓글

  • Greg Katechis
    Zendesk Developer Advocacy

    Hi Joel! The closest option that we would have would be to sideload the sections or categories, as we document here. The syntax would be to append the following at the end of the url: `?include={name}`

    0
  • Joel Sandi

    Interesting, thanks, Greg Katechis. Would this actually help accomplish my intention -- to associate each article in the Articles call with a specific category and section name? At first glance, it doesn't look that way, but I'm a little out of my technical depth here.

    0
  • Greg Katechis
    Zendesk Developer Advocacy
    I'm not familiar with Yext or the available options to iterate through the data, but this does return the data in a single API request. Since this is a sideload, the sections/categories are returned in a separate object, so the article name would not be returned in each individual article's object.
    0
  • Joel Sandi

    Ah, I see. Yeah, Yext or not, the idea would be to glean from what is returned per article what section and category each is in in order to leverage those attributes. Unfortunate that it doesn't work like that unless you can offer another way to return the data, but at least I know now. Thanks.

    0

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

Zendesk 제공