How to disable api limits?

Hi, im trying to create a importer.
its written in php and using the discourse API.

Often it hits some limits or validators (Is this really a sentence? User Topic or Post limits 20 and so on).
How to disable all these validations and limits for my import?

For these 20 posts per day limits and so on i tried to set them to 0 in the backend, but when i do this, another limit resets it self from 0 to 20 again.

1 Like

I’d recommend that you instead use one of the existing import scripts and modify it for your needs. It will be 10-100 orders of magnitude faster. I wrote several importers before I learned Ruby.

You can find out about rate limits here: discourse/config/discourse_defaults.conf at 1f34f653bfb6ccb39a4f4f8085b07e9d94389e6f · discourse/discourse · GitHub and here: Available settings for global rate limits and throttling

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.