Recherches récentes


Pas de recherche récente

Help Center - Bulk translate categories / sections / articles



Publication le 18 mars 2021

Hi,

I'm new here in the API section, so If I say stupid things, its probably related to my newbie status. 

I've played around with the documentation with some succes. 
Now that I'm trying to make something useful of the API, i'm stuck.

(I'm using postman)

Description:

My as-is is as followed:

- I've multiple already created categories. > When we deploy in a new country, I add the "country+language" in Zendesk guide. 
- In the past I translated the "title & description" via the UI, what is not fine, because the design made it timewasting. 

Adding a translation to a category via the API is working with succes. 

POST: https://***.zendesk.com/api/v2/help_center/categories/360002977220/translations/

{
    "translation": 
        {
            "locale": "cs-cz",
            "title": "Start here",
            "body": "New? Read this and get started In minutes"
        }
    }

 

But I tried everything to make multiple translations in 1 time, without success.

I also tried to make a list of all the categories that have to be translated in a specific "new language" but without succes. 

Does someone has an example of code that can be used for translating multiple categories in a specific language in 1 script? 

 


0

1

1 commentaire

image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi Francois! Yes, you can pass multiple translations in at one time, provided that you have already enabled those translations in your help center. The documentation for this is located here in the curl example, which I'll also post:

{
"category": {
"position": 2,
"translations": [
{
"locale": "en-us",
"title": "Super Hero Tricks",
"body": "This category contains a collection of Super Hero tricks"
},
{
"locale": "fr",
"title": "Trucs Super Heros",
"body": "Cette categorie contient une collection de trucs super heros"
}

]

}

-1


Vous devez vous connecter pour laisser un commentaire.

Vous ne trouvez pas ce que vous cherchez ?

Nouvelle publication