---
title: "Update Firestore Allowed Collections"
method: PATCH
path: "/api/firestore/allowed_collections"
---

# Update Firestore Allowed Collections

`PATCH /api/firestore/allowed_collections`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/firestore/allowed_collections`
- Auth: none declared

Update allowed collections for Firestore access.

This allows updating the collection-level restrictions without
re-uploading the service account credentials.

Payload:
{
    "allowed_collections": ["users", "orders"]  # Array of collection paths, or null for all
}

Set allowed_collections to null to allow access to all collections.
Supports wildcards like "users/*/orders" for subcollections.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/deeptrace/apis/deeptrace-api.md) - [All operations](https://skmtc.dev/deeptrace/apis/deeptrace-api/llms.txt) - [OpenAPI document](https://skmtc.dev/deeptrace/apis/deeptrace-api/revisions/855e59bb07f0?raw)
