# Broadcast control (/docs/api/broadcast-control)

Update broadcast identity and control a live playday through Public API v2.

The broadcast routes let your integration edit an event's broadcast branding
and control a live playday from external production tools. They require an
installed Application OAuth token with `broadcast:read` or `broadcast:manage`
and don't accept developer control tokens.

Every write is revision-checked so two producers can't silently overwrite each
other. Read the resource first, then send its `ETag` back in `If-Match`.

## Read the current revision [#read-the-current-revision]

Fetch the broadcast config or playday and keep the `ETag` response header for
your write:

```bash
curl https://strave.gg/api/v2/events/event_01K4ZK/playdays/playday_01K4ZM \
  --header "Authorization: Bearer $STRAVE_ACCESS_TOKEN" \
  --include
```

`data.revision` in the JSON body matches the strong `ETag` integer. For
example, `"revision": 7` corresponds to `ETag: "7"`.

## Update the playday [#update-the-playday]

A `PUT` to `/rundown` replaces the ordered match list for that playday. Every
match ID must belong to the same event:

```bash
curl --request PUT \
  https://strave.gg/api/v2/events/event_01K4ZK/playdays/playday_01K4ZM/rundown \
  --header "Authorization: Bearer $STRAVE_ACCESS_TOKEN" \
  --header 'If-Match: "7"' \
  --header "Content-Type: application/json" \
  --data '{
    "matchIds": ["match_01K4ZN", "match_01K4ZP"]
  }'
```

The other playday `PUT` routes follow the same `If-Match` pattern:

- `/staff` replaces the assigned broadcast crew list.
- `/live-match` sets the active match on air. Send `{ "matchId": null }` to
  clear it.
- `/overlay-score` sets the non-negative integers `scoreA` and `scoreB`.

Overlay scores only change what appears on stream. To submit an official match
result, use the match result endpoints instead.

## Activate or deactivate a playday [#activate-or-deactivate-a-playday]

Going live or taking a playday off air requires both `If-Match` and a unique
`Idempotency-Key`:

```bash
curl --request POST \
  https://strave.gg/api/v2/events/event_01K4ZK/playdays/playday_01K4ZM/activate \
  --header "Authorization: Bearer $STRAVE_ACCESS_TOKEN" \
  --header 'If-Match: "8"' \
  --header "Idempotency-Key: activate-playday-01K4ZM-v1" \
  --header "Content-Type: application/json" \
  --data '{}'
```

Send the same request to `/deactivate` to stop the playday. Retrying an action
with the same `Idempotency-Key` and body returns the stored result with
`Idempotency-Replayed: true`.

## Update broadcast identity [#update-broadcast-identity]

`PATCH /events/{eventId}/broadcast` updates only the fields you include in the
body. Send `null` for `eventNameOverride` or `overlayMeta` to clear them:

```json
{
	"eventNameOverride": "Major Final",
	"colors": {
		"primaryColor": "#7C3AED",
		"backgroundColor": "#09090B"
	},
	"overlayMeta": {
		"mode": "custom",
		"customLabel": "Up next",
		"customValue": "{teamA} vs {teamB}"
	}
}
```

Every successful write returns `resourceId`, the incremented `revision`, and
`updated: true`. If downstream graphics or bots need to react right away,
subscribe to [Live streams (SSE)](/docs/api/live-streams) or the broadcast and
playday webhook events returned by `GET /event-types`.

## Next steps [#next-steps]

- Stream live playday updates in [Live streams (SSE)](/docs/api/live-streams).
- Drive custom OBS graphics in
  [Self-hosted OBS overlays](/docs/api/guides/obs-overlay).