POST scenarios/headtohead

Request Information

URI Parameters

None.

Body Parameters

HeadToHeadScenarioViewModel
NameDescriptionTypeAdditional information
scenario_type

string

None.

Scenario

HeadToHeadScenarioChunkViewModel

None.

Player_1

PlayerChunkViewModel

None.

Player_2

PlayerChunkViewModel

None.

Player_1_Image_Urls

PlayerPortraitImageUrlsViewModel

None.

Player_2_Image_Urls

PlayerPortraitImageUrlsViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "scenario_type": "sample string 1",
  "Scenario": {
    "id": 1,
    "player_1_id": 1,
    "player_2_id": 1,
    "stat_in_question": "sample string 1",
    "game_season": 2,
    "game_week": 3,
    "source": "sample string 4",
    "position_type": "sample string 5",
    "winning_player_id": 1,
    "results_gap": 1.0,
    "favorite_player_id": 1,
    "player_1_prediction_percentage": 1.0,
    "player_2_prediction_percentage": 1.0
  },
  "Player_1": {
    "id": 1,
    "first_name": "sample string 2",
    "last_name": "sample string 3",
    "full_name": "sample string 4",
    "team": null,
    "height": 1,
    "weight": 1,
    "year_started": 1,
    "forty_time": 1.0,
    "shuttle_time": 1.0,
    "bench_weight": 1,
    "vertical_jump": 1.0,
    "broad_jump": 1,
    "cone_time": 1.0,
    "draft_position": 1,
    "college": null,
    "college_division": null,
    "positions": null
  },
  "Player_2": {
    "id": 1,
    "first_name": "sample string 2",
    "last_name": "sample string 3",
    "full_name": "sample string 4",
    "team": null,
    "height": 1,
    "weight": 1,
    "year_started": 1,
    "forty_time": 1.0,
    "shuttle_time": 1.0,
    "bench_weight": 1,
    "vertical_jump": 1.0,
    "broad_jump": 1,
    "cone_time": 1.0,
    "draft_position": 1,
    "college": null,
    "college_division": null,
    "positions": null
  },
  "Player_1_Image_Urls": {
    "player_id": 1,
    "tiny": "sample string 2",
    "small": "sample string 3",
    "medium": "sample string 4",
    "large": "sample string 5",
    "giant": "sample string 6"
  },
  "Player_2_Image_Urls": {
    "player_id": 1,
    "tiny": "sample string 2",
    "small": "sample string 3",
    "medium": "sample string 4",
    "large": "sample string 5",
    "giant": "sample string 6"
  }
}

application/xml, text/xml

Sample:
<HeadToHeadScenarioViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.ViewModels.Prediction">
  <Player_1 xmlns:d2p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.ViewModels.Players">
    <d2p1:bench_weight>1</d2p1:bench_weight>
    <d2p1:broad_jump>1</d2p1:broad_jump>
    <d2p1:college xmlns:d3p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.Common" i:nil="true" />
    <d2p1:college_division xmlns:d3p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.Common" i:nil="true" />
    <d2p1:cone_time>1</d2p1:cone_time>
    <d2p1:draft_position>1</d2p1:draft_position>
    <d2p1:first_name>sample string 2</d2p1:first_name>
    <d2p1:forty_time>1</d2p1:forty_time>
    <d2p1:full_name>sample string 4</d2p1:full_name>
    <d2p1:height>1</d2p1:height>
    <d2p1:id>1</d2p1:id>
    <d2p1:last_name>sample string 3</d2p1:last_name>
    <d2p1:positions xmlns:d3p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.Common" i:nil="true" />
    <d2p1:shuttle_time>1</d2p1:shuttle_time>
    <d2p1:team xmlns:d3p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.Common" i:nil="true" />
    <d2p1:vertical_jump>1</d2p1:vertical_jump>
    <d2p1:weight>1</d2p1:weight>
    <d2p1:year_started>1</d2p1:year_started>
  </Player_1>
  <Player_1_Image_Urls xmlns:d2p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.ViewModels.Media">
    <d2p1:giant>sample string 6</d2p1:giant>
    <d2p1:large>sample string 5</d2p1:large>
    <d2p1:medium>sample string 4</d2p1:medium>
    <d2p1:small>sample string 3</d2p1:small>
    <d2p1:tiny>sample string 2</d2p1:tiny>
    <d2p1:player_id>1</d2p1:player_id>
  </Player_1_Image_Urls>
  <Player_2 xmlns:d2p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.ViewModels.Players">
    <d2p1:bench_weight>1</d2p1:bench_weight>
    <d2p1:broad_jump>1</d2p1:broad_jump>
    <d2p1:college xmlns:d3p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.Common" i:nil="true" />
    <d2p1:college_division xmlns:d3p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.Common" i:nil="true" />
    <d2p1:cone_time>1</d2p1:cone_time>
    <d2p1:draft_position>1</d2p1:draft_position>
    <d2p1:first_name>sample string 2</d2p1:first_name>
    <d2p1:forty_time>1</d2p1:forty_time>
    <d2p1:full_name>sample string 4</d2p1:full_name>
    <d2p1:height>1</d2p1:height>
    <d2p1:id>1</d2p1:id>
    <d2p1:last_name>sample string 3</d2p1:last_name>
    <d2p1:positions xmlns:d3p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.Common" i:nil="true" />
    <d2p1:shuttle_time>1</d2p1:shuttle_time>
    <d2p1:team xmlns:d3p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.Common" i:nil="true" />
    <d2p1:vertical_jump>1</d2p1:vertical_jump>
    <d2p1:weight>1</d2p1:weight>
    <d2p1:year_started>1</d2p1:year_started>
  </Player_2>
  <Player_2_Image_Urls xmlns:d2p1="http://schemas.datacontract.org/2004/07/SportsPorchAPI_v2.ViewModels.Media">
    <d2p1:giant>sample string 6</d2p1:giant>
    <d2p1:large>sample string 5</d2p1:large>
    <d2p1:medium>sample string 4</d2p1:medium>
    <d2p1:small>sample string 3</d2p1:small>
    <d2p1:tiny>sample string 2</d2p1:tiny>
    <d2p1:player_id>1</d2p1:player_id>
  </Player_2_Image_Urls>
  <Scenario>
    <favorite_player_id>1</favorite_player_id>
    <game_season>2</game_season>
    <game_week>3</game_week>
    <id>1</id>
    <player_1_id>1</player_1_id>
    <player_1_prediction_percentage>1</player_1_prediction_percentage>
    <player_2_id>1</player_2_id>
    <player_2_prediction_percentage>1</player_2_prediction_percentage>
    <position_type>sample string 5</position_type>
    <results_gap>1</results_gap>
    <source>sample string 4</source>
    <stat_in_question>sample string 1</stat_in_question>
    <winning_player_id>1</winning_player_id>
  </Scenario>
  <scenario_type>sample string 1</scenario_type>
</HeadToHeadScenarioViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'HeadToHeadScenarioViewModel'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.