Source: https://dinakar-rewind.docs.pageloop.ai/api-reference/admin/adminattendingnormalizesportstitles

# Regenerate sports event titles + subtitles from canonical event_data

POST `https://api.rewind.rest/v1/admin/attending/normalize-sports-titles`

For every attended sports event with a canonical match (mlb\_stats\_api / espn), regenerate the title as `\<Home> vs \<Away>` and the subtitle as `\<HomeShort> N, \<AwayShort> M` from event\_data.home\_team / event\_data.away\_team / event\_data.home\_score / event\_data.away\_score. Skips events with no event\_data. Pass dry\_run to preview the diff before applying.

## Authorization

#### Authorization (header, string, required)

API key. Read keys (rw\_live\_...) access GET endpoints. Admin keys (rw\_admin\_...) access all endpoints.

## Body

#### dry\_run (body, boolean)

#### limit (body, integer)

## Response

#### 200

Normalization completed

#### status (enum (string), required) — allowed: completed

#### dry\_run (boolean, required)

#### scanned (integer, required)

#### updated (integer, required)

#### skipped\_no\_event\_data (integer, required)

#### samples (array of object, required)

#### properties

#### id (integer, required)

#### event\_date (string, required)

#### old\_title (string, required)

#### new\_title (string, required)

#### new\_subtitle (string, required)

#### 401

Unauthorized

#### error (string, required)

#### status (integer, required)

#### 500

Internal server error

#### error (string, required)

#### status (integer, required)

#### Request

```bash cURL
curl -X POST 'https://api.rewind.rest/v1/admin/attending/normalize-sports-titles' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{"dry_run": true, "limit": 0}'
```

```javascript JavaScript
const res = await fetch('https://api.rewind.rest/v1/admin/attending/normalize-sports-titles', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"dry_run": true, "limit": 0}),
});
const data = await res.json();
```

```python Python
import requests

res = requests.post(
    'https://api.rewind.rest/v1/admin/attending/normalize-sports-titles',
    headers={'Authorization': 'Bearer <token>'},
    json={"dry_run": true, "limit": 0}
)
data = res.json()
```

#### Response

```json 200
{
  "status": "completed",
  "dry_run": true,
  "scanned": 0,
  "updated": 0,
  "skipped_no_event_data": 0,
  "samples": [
    {
      "id": 0,
      "event_date": "string",
      "old_title": "string",
      "new_title": "string",
      "new_subtitle": "string"
    }
  ]
}
```

```json 401
{
  "error": "Not found",
  "status": 404
}
```

```json 500
{
  "error": "Not found",
  "status": 404
}
```
