POST api/Astronaut
Request Information
URI Parameters
None.
Body Parameters
Astronaut| Name | Description | Type | Additional information |
|---|---|---|---|
| UserzID | globally unique identifier |
Required |
|
| TimePlayed | date |
Required |
|
| GameID | globally unique identifier |
None. |
|
| TotalTime | decimal number |
Required |
|
| Score | decimal number |
Required |
|
| GameMode | string |
Required |
|
| LevelNumber | integer |
Required |
|
| NumberOfLives | integer |
Required |
|
| WaveNumber | integer |
Required |
|
| Hand | AstronautHandType |
Required |
|
| MaxLevel | integer |
Required |
|
| CorrectHit | integer |
Required |
|
| WrongHit | integer |
Required |
|
| Success | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"UserzID": "9a3017f7-c9d1-4be3-aaa8-afd0849a589a",
"TimePlayed": "2025-11-05T10:44:48.5419026+00:00",
"GameID": "93e91450-7fe1-4324-8274-466d0570e9f5",
"TotalTime": 4.1,
"Score": 5.1,
"GameMode": "sample string 6",
"LevelNumber": 7,
"NumberOfLives": 8,
"WaveNumber": 9,
"Hand": 0,
"MaxLevel": 10,
"CorrectHit": 11,
"WrongHit": 12,
"Success": true
}
application/xml, text/xml
Sample:
<AstronautController.Astronaut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameAPIV3.Controllers"> <CorrectHit>11</CorrectHit> <GameID>93e91450-7fe1-4324-8274-466d0570e9f5</GameID> <GameMode>sample string 6</GameMode> <Hand>RIGHT</Hand> <LevelNumber>7</LevelNumber> <MaxLevel>10</MaxLevel> <NumberOfLives>8</NumberOfLives> <Score>5.1</Score> <Success>true</Success> <TimePlayed>2025-11-05T10:44:48.5419026+00:00</TimePlayed> <TotalTime>4.1</TotalTime> <UserzID>9a3017f7-c9d1-4be3-aaa8-afd0849a589a</UserzID> <WaveNumber>9</WaveNumber> <WrongHit>12</WrongHit> </AstronautController.Astronaut>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.