$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "mode": "inline",
< "currentSnapshot": {
< "format": "records",
< "records": [
< {
< "id": 101,
< "full_name": "acme/payments",
< "private": false,
< "archived": false,
< "fork": false,
< "default_branch": "main",
< "has_issues": true,
< "license": {
< "spdx_id": "MIT"
< },
< "latest_release_at": "2026-09-01T10:00:00Z",
< "updated_at": "2026-09-20T12:00:00Z"
< },
< {
< "id": 202,
< "full_name": "acme/legacy-api",
< "private": true,
< "archived": true,
< "fork": false,
< "default_branch": "main",
< "has_issues": false,
< "license": null,
< "latest_release_at": null,
< "updated_at": "2025-01-10T09:00:00Z"
< }
< ]
< },
< "priorSnapshot": {
< "format": "records",
< "records": [
< {
< "id": 101,
< "full_name": "acme/payments",
< "private": false,
< "archived": false,
< "fork": false,
< "default_branch": "master",
< "has_issues": true,
< "license": {
< "spdx_id": "MIT"
< },
< "latest_release_at": "2026-08-01T10:00:00Z",
< "updated_at": "2026-08-15T12:00:00Z"
< }
< ]
< },
< "asOf": "2026-09-24T12:00:00Z"
<}
<EOF
$curl "https://api.apify.com/v2/actors/first_watch~github-repository-metadata-export/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'