POST api/Feelings/PostGameData
Request Information
URI Parameters
None.
Body Parameters
Feelings| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID | globally unique identifier |
Required |
|
| TotalTime | decimal number |
Required Range: inclusive between 0 and 300 |
|
| Activity | FeelingsActivity |
Required |
|
| Emotion | FeelingsEmotionName |
Required |
|
| isSuccessful | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"UserID": "aabfb215-c6ab-477b-a6a0-bfb8954c42d4",
"TotalTime": 2.1,
"Activity": 0,
"Emotion": 0,
"isSuccessful": true
}
application/xml, text/xml
Sample:
<FeelingsController.Feelings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameAPIV3.Controllers"> <Activity>Mimic</Activity> <Emotion>Happy</Emotion> <TotalTime>2.1</TotalTime> <UserID>aabfb215-c6ab-477b-a6a0-bfb8954c42d4</UserID> <isSuccessful>true</isSuccessful> </FeelingsController.Feelings>
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.