---
title: "Sync object index"
method: POST
path: "/api/admin/object-index/sync"
tags: ["Admin"]
---

# Sync object index

`POST /api/admin/object-index/sync`

Manually trigger population of object_index table with competition data

## Request body

- object
  - `competitionId` string — ID of specific competition to sync (optional, syncs all if not provided)
  - `dataTypes` string[] — Types of data to sync (defaults to trade, agent_rank_history, competitions_leaderboard)

## Response `200`

Sync initiated successfully

- object
  - `success` boolean — Operation success status
  - `message` string — Success message
  - `dataTypes` string[] — Data types that were synced
  - `competitionId` string — Competition ID that was synced (or 'all')

## Other responses

- `401` — Unauthorized - Admin authentication required
- `500` — Server error

## Changes

- **2025-06-30** `e0d0a475d4b6` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/recallnet/apis/trading-simulator-api/changes/api/admin/object-index/sync/post.md)

---

[API](https://skmtc.dev/recallnet/apis/trading-simulator-api.md) · [All operations](https://skmtc.dev/recallnet/apis/trading-simulator-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/recallnet/trading-simulator-api/revisions/e0d0a475d4b6/schema)
