POST api/UserActivity

Request Information

URI Parameters

None.

Body Parameters

Collection of UserActivityRequestModel
NameDescriptionTypeAdditional information
app

string

Required

Max length: 50

rt

string

Max length: 2048

caid

integer

None.

oaid

integer

None.

mid

integer

None.

atype

string

Max length: 50

ec

string

Max length: 100

Request Formats

application/json, text/json

Sample:
[
  {
    "app": "sample string 1",
    "rt": "sample string 2",
    "caid": 1,
    "oaid": 1,
    "mid": 1,
    "atype": "sample string 3",
    "ec": "sample string 4",
    "ea": "sample string 5",
    "el": "sample string 6",
    "ev": "sample string 7",
    "lat": 1.1,
    "lon": 1.1,
    "rad": 1.1,
    "zoom": 64,
    "resW": 1,
    "resH": 1,
    "source": "sample string 8",
    "title": "sample string 9",
    "ip": "sample string 10"
  },
  {
    "app": "sample string 1",
    "rt": "sample string 2",
    "caid": 1,
    "oaid": 1,
    "mid": 1,
    "atype": "sample string 3",
    "ec": "sample string 4",
    "ea": "sample string 5",
    "el": "sample string 6",
    "ev": "sample string 7",
    "lat": 1.1,
    "lon": 1.1,
    "rad": 1.1,
    "zoom": 64,
    "resW": 1,
    "resH": 1,
    "source": "sample string 8",
    "title": "sample string 9",
    "ip": "sample string 10"
  }
]

text/html

Sample:
[{"app":"sample string 1","rt":"sample string 2","caid":1,"oaid":1,"mid":1,"atype":"sample string 3","ec":"sample string 4","ea":"sample string 5","el":"sample string 6","ev":"sample string 7","lat":1.1,"lon":1.1,"rad":1.1,"zoom":64,"resW":1,"resH":1,"source":"sample string 8","title":"sample string 9","ip":"sample string 10"},{"app":"sample string 1","rt":"sample string 2","caid":1,"oaid":1,"mid":1,"atype":"sample string 3","ec":"sample string 4","ea":"sample string 5","el":"sample string 6","ev":"sample string 7","lat":1.1,"lon":1.1,"rad":1.1,"zoom":64,"resW":1,"resH":1,"source":"sample string 8","title":"sample string 9","ip":"sample string 10"}]

application/xml, text/xml

Sample:
<ArrayOfUserActivityRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <UserActivityRequestModel>
    <app>sample string 1</app>
    <atype>sample string 3</atype>
    <caid>1</caid>
    <ec>sample string 4</ec>
    <mid>1</mid>
    <oaid>1</oaid>
    <rt>sample string 2</rt>
  </UserActivityRequestModel>
  <UserActivityRequestModel>
    <app>sample string 1</app>
    <atype>sample string 3</atype>
    <caid>1</caid>
    <ec>sample string 4</ec>
    <mid>1</mid>
    <oaid>1</oaid>
    <rt>sample string 2</rt>
  </UserActivityRequestModel>
</ArrayOfUserActivityRequestModel>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.