You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can create multiple stories using the `createBulk()` method, which processes an array of stories while managing rate limits through a retry mechanism that respects the '429' status code.
302
+
303
+
For example, if you have a CSV file containing content for new stories, you can use this method to efficiently create them.
304
+
305
+
```csv
306
+
myslug-001;My Story 1 BULK;page
307
+
myslug-002;My Story 2 BULK;page
308
+
myslug-003;My Story 3 BULK;page
309
+
```
310
+
311
+
Next, you can implement a script to load and parse the CSV file. In this case, we use `SplFileObject` and then call the `createBulk` method to process the data:
0 commit comments