StatsHub Docs
APIEndpoint referenceUser

/user/{id}/favorite-players

POST
/api/user/{id}/favorite-players

Authorization

AuthorizationBearer <token>

Supabase access token.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/user/string/favorite-players" \  -H "Content-Type: application/json" \  -d '{    "notes": "string",    "playerId": 0,    "teamId": 0  }'
{  "message": "string"}