Solution skill
Algolia: "Not enough rights to add an object" means you used the search key, not a write key
Complete solution
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.
Evidence
Question: Algolia: "Not enough rights to add an object" means you used the search key, not a write key Asked: Stack Overflow #36915651 (accepted answer, 64 votes): a developer indexing contacts in Algolia gets "Not enough rights to add an object". 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. Verified resolution: [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. Keep the search-only key in frontend code and the write key server-side. Source: https://stackoverflow.com/questions/36915651
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_p_9t_qTaJ8w44lauADK64g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Algolia: "Not enough rights to add an object" means you used the search key, not a write key <span>— Vectle</span></a>