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| Field | Required | Notes |
|---|---|---|
provider_id | yes | 1–64 characters; must be a configured provider |
entries | yes | 1–500 rows; upsert key is player + provider |
dry_run | no | Validate only when true |
entries[].profile_id | yes | Existing player UUID |
entries[].normalized_score | no | 0–5000 on the public score scale; nullable |
entries[].external_player_ref | no | Nullable string ≤ 255 |
entries[].raw_rating / raw_label | no | Optional source values for your records |
entries[].rating_observed_at | no | ISO 8601 datetime |
entries[].metadata | no | Arbitrary JSON object |
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.