Skip to content

External ratings

Store a value from another rating scale for players that already exist in PadelRank.

POST /v1/external-ratings/upsert

POST/v1/external-ratings/upsertwrite:external-ratings
FieldRequiredNotes
provider_idyes1–64 characters; must be a configured provider
entriesyes1–500 rows; upsert key is player + provider
dry_runnoValidate only when true
entries[].profile_idyesExisting player UUID
entries[].normalized_scoreno0–5000 on the public score scale; nullable
entries[].external_player_refnoNullable string ≤ 255
entries[].raw_rating / raw_labelnoOptional source values for your records
entries[].rating_observed_atnoISO 8601 datetime
entries[].metadatanoArbitrary JSON object
cURL
curl -s -X POST "https://api.padelrank.me/v1/external-ratings/upsert" \
  -H "Authorization: Bearer $PADELRANK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "provider_id": "your_provider",
    "dry_run": true,
    "entries": [
      {
        "profile_id": "11111111-1111-4111-8111-111111111111",
        "external_player_ref": "ext-maria",
        "normalized_score": 2800
      }
    ]
  }'

Success returns { "ok": true, "provider_id": "…", "total": N }. With dry_run, the body also includes dry_run: true. Unknown provider → 404. Inactive provider → 409. Unknown players → 422 with unknown_profiles.

This endpoint does not accept an Idempotency-Key header. Repeat calls upsert the same player+provider row.

External ratings · PadelRank Developers