AstonJ is trying to use the Discourse API to set a timer for a topic to close in 30 days. The API documentation shows a request sample with a category_id parameter, which seems inconsistent with setting timers. Arkshine suggests following the Reverse engineer the Discourse API guide and notes that the category_id parameter is not required, but depends on the status_type. AstonJ resolves the issue by using a user with mod permissions, as they were getting an “invalid access” error due to their category setup. The correct parameters for auto-closing a topic in 30 days are also discussed.
I kept getting an error about selecting a sub-category, and I remembered that we changed the text for invalid_access as we have things set up so most categories that can be posted in are sub-categories (and people kept trying to post in a parent category). So with invalid access I just needed to change to a user with mod permissions… and it works now, thanks!