---
title: "Rotate a Live Activity push token"
method: PATCH
path: "/api/events/{gameId}/live-activity"
tags: ["Events"]
---

# Rotate a Live Activity push token

`PATCH /api/events/{gameId}/live-activity`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/events/{gameId}/live-activity`
- Auth: HTTP bearer

Authenticated. Replaces the stored hex ActivityKit push token on an existing registration. The token is for the client call OneSignal.LiveActivities.enter(activityId, pushToken). The server does not send it to Apple or OneSignal. 404 when no row matches activityId on this fixture. 403 when the row belongs to another user.

## Path parameters

- `gameId` string, required

## Request body

- object
  - `activityId` string, required: Server-minted hq:{gameId}:{teamId}:{userId}.
  - `pushToken` string, required: Replacement hex ActivityKit token.

## Response `200`

Token rotated

- object
  - `success` true, required
  - `data` object, required
    - `activityId` string, required

## Other responses

- `400`: VALIDATION_ERROR — activityId or pushToken missing, or pushToken is not hex
- `401`: UNAUTHORIZED — no valid Clerk session
- `403`: FORBIDDEN — registration belongs to another user
- `404`: NOT_FOUND — no registration for this activityId on this fixture

## Changes

- **2026-11-18** `6de639c52609`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/events/:gameId/live-activity/patch.md)

---

[API](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api.md) - [All operations](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/llms.txt) - [OpenAPI document](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/revisions/63735cf90a04?raw)
