POST api/Feelings/PostGameData

Request Information

URI Parameters

None.

Body Parameters

Feelings
NameDescriptionTypeAdditional 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": "e2d61884-5cd3-4638-a4ff-9266ac6324fc",
  "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>e2d61884-5cd3-4638-a4ff-9266ac6324fc</UserID>
  <isSuccessful>true</isSuccessful>
</FeelingsController.Feelings>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.