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

# Promote a pending source row to a canonical event

POST `https://api.rewind.rest/v1/admin/attending/sources/{id}/promote`

Manually trigger enrich+load for a single source row. Optional body overrides individual fields when the parser got something wrong. The source row's raw\_data supplies defaults for any field not overridden.

## Authorization

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

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

## Path Parameters

#### id (path, integer, required)

## Body

#### title (body, string)

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

#### event\_datetime (body, string)

#### location (body, string)

#### performers (body, array of string)

## Response

#### 200

Source promoted

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

#### event\_id (integer, required)

#### action (enum (string), required) — allowed: inserted, updated

#### match\_confidence (number, required)

#### match\_notes (array of string, required)

#### 400

Bad request

#### error (string, required)

#### status (integer, required)

#### 401

Unauthorized

#### error (string, required)

#### status (integer, required)

#### 404

Not found

#### 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/sources/{id}/promote' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{"title": "string", "event_date": "2024-09-14", "event_datetime": "string", "location": "string", "performers": ["string"]}'
```

```javascript JavaScript
const res = await fetch('https://api.rewind.rest/v1/admin/attending/sources/{id}/promote', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"title": "string", "event_date": "2024-09-14", "event_datetime": "string", "location": "string", "performers": ["string"]}),
});
const data = await res.json();
```

```python Python
import requests

res = requests.post(
    'https://api.rewind.rest/v1/admin/attending/sources/{id}/promote',
    headers={'Authorization': 'Bearer <token>'},
    json={"title": "string", "event_date": "2024-09-14", "event_datetime": "string", "location": "string", "performers": ["string"]}
)
data = res.json()
```

#### Response

```json 200
{
  "status": "promoted",
  "event_id": 0,
  "action": "inserted",
  "match_confidence": 0,
  "match_notes": [
    "string"
  ]
}
```

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

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

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

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