If you’re going to do it once, you might do it at the rails console. If you’ll need to do it frequently going forward, using the API might make more sense.
If you do a
Category.new
In rails, you’ll see what the fields are. You can then do a
Category.create(title: "fun"....)
To create them. Something like that.