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

# Bulk-import attended events from a hand-curated list

POST `https://api.rewind.rest/v1/admin/sync/attending/manual-import`

Loads attended\_events rows from per-game entries (UW football 2007–2010 from Wikipedia) or season-shorthand entries (`attendance: "all_home"` for friend's-season-tickets pattern). Hits MLB Stats API / ESPN to fetch canonical game records — no manual score-typing required.

## Authorization

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

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

## Body

#### events (body, array of object, required)

## Response

#### 200

Import completed

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

#### loaded (integer, required)

#### inserted (integer, required)

#### updated (integer, required)

#### skipped\_attended\_zero (integer, required)

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

#### properties

#### entry (object)

#### reason (string, required)

#### 400

Bad request

#### error (string, required)

#### status (integer, 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/sync/attending/manual-import' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{"events": [{}]}'
```

```javascript JavaScript
const res = await fetch('https://api.rewind.rest/v1/admin/sync/attending/manual-import', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"events": [{}]}),
});
const data = await res.json();
```

```python Python
import requests

res = requests.post(
    'https://api.rewind.rest/v1/admin/sync/attending/manual-import',
    headers={'Authorization': 'Bearer <token>'},
    json={"events": [{}]}
)
data = res.json()
```

#### Response

```json 200
{
  "status": "completed",
  "loaded": 0,
  "inserted": 0,
  "updated": 0,
  "skipped_attended_zero": 0,
  "unmatched": [
    {
      "entry": {},
      "reason": "string"
    }
  ]
}
```

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

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

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