#community-help

API Key Permissions and Collection Patterns

TLDR Marcos asked about using a pattern for collections. Jason suggested changing it to a regex pattern.

Powered by Struct AI
3
6mo
Solved
Join the chat
Mar 29, 2023 (6 months ago)
Marcos
Photo of md5-190d44ed75b5c212aad1deb8ffdf1b6c
Marcos
07:28 PM
🧵 Question about API key permissions
07:28
Marcos
07:28 PM
Can I use a pattern like this for collections?

[ "croct-docs-prod_*", "croct-docs-dev_*" ]

This isn't working for a collection named croct-docs-prod_14252355 when using the docsearch scrapper.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:22 PM
It has to be a regex… So it should be

[ "croct-docs-prod_.*", "croct-docs-dev_.*" ]