cURL
curl --request POST \ --url https://sandbox.api.fantasyfutbol.app/v1/fantasy-league \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "name": "<string>", "league_id": 2 } '
{ "statusCode": 123, "message": "<string>", "data": { "id": 123, "name": "<string>", "created_by": 123, "is_active": true, "logo_url": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
1
x >= 1
Fantasy league created
Show child attributes