Forum Discussion
peter
Cato Employee
23 days agoHello Sean,
There isn't really a batch mode for addStaticHost. The best I can come up with to make it seem slightly more "batched" is to combine multiple addStaticHosts with aliases in a single mutation operation:
However from a rate limit and logging perspective, these are still two separate API calls. I usually do automation with a Python script so I think it's more efficient and less code for me to loop around on one call, rather than try to construct a large unified single "multi-mutation" like this one. Easier to handle errors too I think.
Regards,
Peter