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

# Backfill player bio fields and awards from MLB Stats /people

POST `https://api.rewind.rest/v1/admin/attending/enrich-player-bio`

For every MLB player missing a hydrated bio (`birth_country IS NULL` is the canary), fetches `/api/v1/people?personIds=…&hydrate=education,awards` in chunks of 100 and writes height, weight, birth\_state\_province, college\_name, debut\_date, bats/throws, and a filtered awards JSON. Idempotent. Pass `force:true` to re-fetch rows that already have bio data; `player_ids` to scope to specific rows.

## Authorization

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

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

## Body

#### player\_ids (body, array of integer)

#### force (body, boolean)

#### limit (body, integer)

## Response

#### 200

Bio backfill completed

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

#### scanned (integer, required)

#### fetched (integer, required)

#### updated (integer, required)

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

#### properties

#### mlb\_stats\_id (integer, required)

#### reason (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/enrich-player-bio' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{"player_ids": [0], "force": true, "limit": 0}'
```

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

```python Python
import requests

res = requests.post(
    'https://api.rewind.rest/v1/admin/attending/enrich-player-bio',
    headers={'Authorization': 'Bearer <token>'},
    json={"player_ids": [0], "force": true, "limit": 0}
)
data = res.json()
```

#### Response

```json 200
{
  "status": "completed",
  "scanned": 0,
  "fetched": 0,
  "updated": 0,
  "failures": [
    {
      "mlb_stats_id": 0,
      "reason": "string"
    }
  ]
}
```

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

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