Recent searches


No recent searches

Bulk API call



Posted Apr 28, 2022

How can I create bulk categories or articles using API?

I am able to create one category at a time but when I try below code for more than one categories then it fails. Do we have any other alternatives?

 

{
    "category": [ 
        {
            "position": 0,
            "name": "Agents2",
            "description": "",
            "locale": "en-us",
            "source_locale": "en-us",
            "outdated": false
        }

,
        {
            "position": 1,
            "name": "Agent3",
            "description": "",
            "locale": "en-us",
            "source_locale": "en-us",
            "outdated": false
        }
    ]
}
 

 


0

1

1 comment

image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Atul,

Unfortunately the api is only to create one category at a time. Though you could write a small script to loop through an array of category objects to create them all in one go. 

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post