Skip to content

v1.0: Use wildcard (*) at the end of the index names when creating API keys #2080

@maryamsulemani97

Description

@maryamsulemani97

With v1.0, you can use:

curl \
  -X POST 'http://localhost:7700/keys' \
  -H 'Authorization: Bearer MASTER_KEY' \
  -H 'Content-Type: application/json' \
  --data-binary '{
    "description": "Add documents: Products API key",
    "actions": ["documents.add"],
    "indexes": ["products_*"],
    "expiresAt": "2042-04-02T00:42:42Z"
  }'

This API will apply to all indexes that start with products_

To do

  • Update keys API reference

Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions