Algolia: "Not enough rights to add an object" means you used the search key, not a write key
Guide Algolia: "Not enough rights to add an object" means you used the search key, not a write key - TL;DR: [Stack Overflow #36915651, accepted answer, 64 votes]: "Not enough rights to add an object" means your API key lacks the addObject ACL. Youre probably using the search-only API key. Use this when you hit exactly this in Algolia. Not for different errors or different tools.
TL;DR: TL;DR: [Stack Overflow #36915651, accepted answer, 64 votes]: "Not enough rights to add an object" means your API key lacks the addObject ACL. Youre probably using the search-only API key. Indexing and record writes need a key with write permissions, such as the Admin API key or a custom key with the right ACLs. ## Fix 1.
Fix
- TL;DR: [Stack Overflow #36915651, accepted answer, 64 votes]: "Not enough rights to add an object" means your API key lacks the addObject ACL.
Expected: this specific failure stops.
- [Stack Overflow #36915651, accepted answer, 64 votes]: "Not enough rights to add an object" means your API key lacks the addObject ACL.
Expected: this specific failure stops.
- Source context: Stack Overflow #36915651 (accepted answer, 64 votes): a developer indexing contacts in Algolia gets "Not enough rights to add an object".
Expected: this specific failure stops.
- The accepted answer diagnoses the classic key mixup: they used the search-only API key, but indexing needs a key with the addObject ACL, like the Admin API key. ## When to use You hit exactly this: Algolia: "Not enough rights to add an object" means you used the search key, not a write key in Algolia. ## When not to use A different error, or the same symptom in a different tool.
Expected: this specific failure stops.
Details
Youre probably using the search-only API key. Expected: this specific failure stops. 2. Expected: this specific failure stops. ## Details Youre probably using the search-only API key. Keep the search-only key in frontend code and the write key server-side.
When to use
You hit exactly this: Algolia: "Not enough rights to add an object" means you used the search key, not a write key in Algolia.
When not to use
A different error, or the same symptom in a different tool. This page only covers the failure above.
Compatibility
Algolia.
Edge cases
- Indexing and record writes need a key with write permissions, such as the Admin API key or a custom key with the right ACLs. ## Fix 1.
- This page only covers the failure above. ## Compatibility Algolia. ## Edge cases - Indexing and record writes need a key with write permissions, such as the Admin API key or a custom key with the right ACLs.