POST api/SimulatedChallenges/CreateSimulatedChallenge

Request Information

URI Parameters

None.

Body Parameters

SimulatedChallengeModel
NameDescriptionTypeAdditional information
Id

integer

None.

ChallengeName

string

None.

Description

string

None.

DistanceGoal

decimal number

None.

ElevationGoal

decimal number

None.

NoofLegs

integer

None.

StartDate

date

None.

EndDate

date

None.

DurationInDays

integer

None.

ChallengeTypeId

integer

None.

ChallengeTypeName

string

None.

CreatedByUserId

integer

None.

CreatedDate

date

None.

UpdatedByUserId

integer

None.

UpdatedDate

date

None.

IsCompleted

boolean

None.

MtnName

string

None.

MtnId

integer

None.

HasMap

boolean

None.

SimulatedChallengeLegModelList

Collection of SimulatedChallengeLegModel

None.

SimulatedChallengeDataM

SimulatedChallengeDataModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ChallengeName": "sample string 2",
  "Description": "sample string 3",
  "DistanceGoal": 4.1,
  "ElevationGoal": 5.1,
  "NoofLegs": 6,
  "StartDate": "2026-09-08T21:10:48.7394773+00:00",
  "EndDate": "2026-09-08T21:10:48.7394773+00:00",
  "DurationInDays": 9,
  "ChallengeTypeId": 10,
  "ChallengeTypeName": "sample string 11",
  "CreatedByUserId": 12,
  "CreatedDate": "2026-09-08T21:10:48.7394773+00:00",
  "UpdatedByUserId": 1,
  "UpdatedDate": "2026-09-08T21:10:48.7394773+00:00",
  "IsCompleted": true,
  "MtnName": "sample string 15",
  "MtnId": 1,
  "HasMap": true,
  "SimulatedChallengeLegModelList": [
    {
      "Id": 1,
      "LegIndex": 2,
      "Distance": 3.1,
      "Elevation": 4.1,
      "StartLocation": "sample string 5",
      "EndLocation": "sample string 6",
      "StartLocLat": 7.0,
      "StartLocLng": 8.0,
      "EndLocLat": 9.0,
      "EndLocLng": 10.0,
      "CumulativeDistance": 11.1,
      "IsCompleted": true
    },
    {
      "Id": 1,
      "LegIndex": 2,
      "Distance": 3.1,
      "Elevation": 4.1,
      "StartLocation": "sample string 5",
      "EndLocation": "sample string 6",
      "StartLocLat": 7.0,
      "StartLocLng": 8.0,
      "EndLocLat": 9.0,
      "EndLocLng": 10.0,
      "CumulativeDistance": 11.1,
      "IsCompleted": true
    }
  ],
  "SimulatedChallengeDataM": {
    "Id": 1,
    "ChallengeId": 2,
    "ChallengeName": "sample string 3",
    "UserId": 4,
    "StatusId": 5,
    "StatusName": "sample string 6",
    "Distance": 7.1,
    "Elevation": 8.1,
    "CompletionPercent": 1.0,
    "Rank": 1,
    "CurrentLegId": 1,
    "CurrentLocation": "sample string 9",
    "CurrentLocLat": 1.0,
    "CurrentLocLng": 1.0,
    "GoalReached": true
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

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.