---
title: "Set API key collection scoping"
method: PUT
path: "/user/api-key-collections"
tags: ["Authentication"]
---

# Set API key collection scoping

`PUT /user/api-key-collections`

## Request body

- object
  - `api_key` string, required
  - `collection_ids` string[], required

## Response `200`

API key collections updated

- SuccessResponse
  - `success` boolean
  - `message` string

## Other responses

- `400` — Invalid request
- `403` — Pro-only feature

---

[API](https://skmtc.net/video-db/apis/videodb-server-api.md) · [All operations](https://skmtc.net/video-db/apis/videodb-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/video-db/videodb-server-api/revisions/21b1d1d3eae8/schema)
