Closed tomjoht closed 7 years ago
Hello,
You need an API key that can push content to both index_name
and index_name_tmp
. You can use your Admin API key (because it has write access to all your indices), or create a custom key with only write access specific indices. I would suggest using a custom key, it is either to revoke in case it leaks.
To do that, you need to add a new key through your dashboard, and give it access to index_name*
(note the *
suffix), which means any index starting with index_name
(which will include index_name_tmp
). You also need to check the boxes at the bottom of the form to allow writing content and settings to this index.
I've added a screenshot:
I've also updated the README to make it clearer. If you're still having troubles, let me know :)
Thanks. I did have the Admin API key initially when I encountered this message. I created a custom key like you suggested, and I was able to push just fine.
I'm trying to integrate Algolia with my Jekyll site by following the instructions here. The instructions say,
However, the instructions don't explain how to enable write access to index_name and _tmp. As a result, when I try to push my index, I get this error:
In my Algolia Dashboard, the Admin API key is the same for both of my indexes (the regular one and the _tmp) one. How do I give my index_tmp write access so that I don't get this error message when pushing my index from the command line?