---
title: "Set private broadcast access for an entitlement token in a repository."
method: POST
path: "/entitlements/{owner}/{repo}/{identifier}/toggle-private-broadcasts/"
tags: ["entitlements"]
---

# Set private broadcast access for an entitlement token in a repository.

`POST /entitlements/{owner}/{repo}/{identifier}/toggle-private-broadcasts/`

Set private broadcast access for an entitlement token in a repository.

## Request body

- RepositoryTokenPrivateBroadcastsRequest
  - `access_private_broadcasts` boolean, required — Whether the token should have access to private broadcasts.

## Response `200`

Private broadcasts access has been updated for the entitlement token.

## Other responses

- `400` — Request could not be processed (see detail).
- `422` — Missing or invalid parameters (see detail).

---

[API](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1.md) · [All operations](https://skmtc.dev/cloudsmith/apis/cloudsmith-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cloudsmith/cloudsmith-api-v1/revisions/4d7879df9b2f/schema)
