---
title: "Update API key brand scope"
method: PATCH
path: "/v1/accounts/me/api-keys/{keyId}/scope"
tags: ["accounts"]
---

# Update API key brand scope

`PATCH /v1/accounts/me/api-keys/{keyId}/scope`

## Request

- Base URL: `https://api.dispatchtickets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dispatchtickets.com/v1/accounts/me/api-keys/{keyId}/scope`
- Auth: HTTP bearer

## Path parameters

- `keyId` string, required

## Request body

- UpdateApiKeyScopeDto
  - `allBrands` boolean: Whether this key can access all brands
  - `brandIds` string[]: Specific brand IDs this key can access (required if allBrands is false)

## Response `200`

API key scope updated

---

[API](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api.md) · [All operations](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/revisions/82fc25ab859b?raw)
