Bulk API call | Community
Skip to main content

Bulk API call

  • April 28, 2022
  • 1 reply
  • 0 views

Atul11

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
        }
    ]
}
 

 

1 reply

Eric27
  • April 29, 2022
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.