Recent searches


No recent searches

I can't list articles created in a secondary locale



Posted Nov 25, 2022

Hello, I had been able to publish articles via API, to the en-us locale, and I can list them by ID, both passing the en-us locale or not passing locale.

now I am trying to publish to Spanish "es". I can publish, and I obtain an article id.

But when  I try to list the spanish article with this id, I got a Not Record Found error if I pass no locale, and when I pass the "es" locale, the error is "Couldn't authenticate you". 

I am hitting the API with an API token.

what am I missing here?

Error 1, with no locale:

https://MYDOMAIN.zendesk.com/api/v2/help_center/articles/MY_ES_ARTICLE.json
{ error: 'RecordNotFound', description: 'Not found' }

Error 2, with "es" locale:

https://MYDOMAIN.zendesk.com/api/v2/help_center/es/articles/MY_ES_ARTICLE.json
{ error: "Couldn't authenticate you" }

 


0

7

7 comments

image avatar

Dave Dyson (gmail)

Community Moderator

Hi Cesar,

For the second call where you're getting the authentication error, is ti possible that the article permissions are set to signed-in users only or higher, and you're making an unauthenticated API call? For example, if you have an article set to be viewable by signed-in users only, and you enter the API endpoint to show the article as you have above but you're not logged in, you'd get the "Couldn't authenticate you" error.

0


Hello Dave, thank you for the reply.

I don't think it is related to auth issues, because I am using always the same token for all the request, a token that is associated to a user with Help Center admin privileges. 

I suspect that is is really related to the use of a secondary locale, because when the admin user visits the help center and changes the locale to "es", there are no articles displayed, but she can see the article in the internal (authenticated as admin) view in the control panel. 

I am also using a single permission group for all the articles, and hitting the same endpoint for creation, just varying the locale from "en-us" to "es". 

Do you think I am missing some configuration step so the article becomes visible in the spanish version of the help center?

 

 

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Cesar,

I'd suggest opening up a request so the zendesk team can take a look at your account.  
 
Thanks!

0


thanks Eric. 128 character limit and waiting time of 1-2 days, I can't even paste the link to this conversation for reference. the bot is not exactly a wonderful experience.

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

No worries Cesar, I'll pass that feedback on to the appropriate team. 
 

0


Unfortunately, after raising the ticket with all the supporting material, it was closed saying that "queries regarding API are outside the range of the support we are able to offer as Customer Advocates. Since you are looking for API guidance we recommend going to our developer community at developer.zendesk.com (http://developer.zendesk.com/). Zendesk provides these articles for instructional purposes only. Unfortunately, we do not provide support for this content."

if I understood well, zendesk customers are all alone regarding API issues, trying to solve the stuff in the comunity forums by ourselves?  

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Cesar,

Looks like someone made a mistake somewhere along the way. I'm going to pull this into a ticket to have this issue dug into for you. 

Sorry for the runaround. 

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post