---
title: "Count active assignments of learners who would lose access under a prospective team audience"
method: POST
path: "/api/v1/tracks/{trackId}/visibility/preflight"
tags: ["content-allocation"]
---

# Count active assignments of learners who would lose access under a prospective team audience

`POST /api/v1/tracks/{trackId}/visibility/preflight`

## Path parameters

- `trackId` string, required

## Request body

- TrackVisibilityPreflightRequestDTO
  - `teamIds` string[], required — The prospective team audience to evaluate. Learners outside these teams would lose access; an empty array means the track stays visible to everyone, so nobody loses access.

## Response `200`

- TrackVisibilityPreflightResponseDTO
  - `affectedAssignmentCount` integer, required — Number of active (incomplete) assignments held by learners who would lose access if the prospective audience were applied - matches what the restriction revocation flow removes.

## Changes

- **2026-08-25** `579319e21ecf` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/wejam/apis/jam/changes/api/v1/tracks/:trackId/visibility/preflight/post.md)

---

[API](https://skmtc.dev/wejam/apis/jam.md) · [All operations](https://skmtc.dev/wejam/apis/jam/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wejam/jam/revisions/b4e171f8d0f4/schema)
