In order to declare a favorite sport as a Member, you should obtain a user access token.
This access token should contain the scope account:sports
.
This scope should be requested from DECATHLON login through their smax offering
This HTTP API is defined like this:
Following an example of call to the add endpoint with curl tools:
curl --request POST
--url https://api-global.preprod.decathlon.net/sports_practices/2
--header 'Authorization: Bearer <jwt_decathlon_login>
--header 'x-api-key: <x-api-key>'
Example of response returned by the API
[
{
"sport_id": 2
}
]