POST api/Platform/RegisterEvent

Request Information

URI Parameters

None.

Body Parameters

ClientEventLogItemBindingModel
NameDescriptionTypeAdditional information
TypeId

integer

Range: inclusive between 1 and 3

UserId

globally unique identifier

None.

DeviceType

DeviceBrand

Range: inclusive between 1 and 2

UserPhone

string

String length: inclusive between 0 and 10

Location

string

String length: inclusive between 0 and 100

Method

string

String length: inclusive between 0 and 100

StackTrace

string

String length: inclusive between 0 and 4000

AdditionalData

string

String length: inclusive between 0 and 2000

Request Formats

application/json, text/json

Sample:
{
  "TypeId": 1,
  "UserId": "71f5f8041f79467da32ba92900b45228",
  "DeviceType": 0,
  "UserPhone": "sample string 2",
  "Location": "sample string 3",
  "Method": "sample string 4",
  "StackTrace": "sample string 5",
  "AdditionalData": "sample string 6"
}

application/xml, text/xml

Sample:
<ClientEventLogItemBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Models.BindingModels">
  <AdditionalData>sample string 6</AdditionalData>
  <DeviceType>Unknown</DeviceType>
  <Location>sample string 3</Location>
  <Method>sample string 4</Method>
  <StackTrace>sample string 5</StackTrace>
  <TypeId>1</TypeId>
  <UserId>71f5f804-1f79-467d-a32b-a92900b45228</UserId>
  <UserPhone>sample string 2</UserPhone>
</ClientEventLogItemBindingModel>

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 'ClientEventLogItemBindingModel'.

multipart/form-data

Sample:

Failed to generate the sample for media type 'multipart/form-data'. Cannot use formatter 'MultiPartMediaTypeFormatter`1' to write type 'ClientEventLogItemBindingModel'.

Response Information

Resource Description

ServiceResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

MessageId

integer

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "MessageId": 899,
  "Message": "\r\n",
  "Data": {}
}

application/xml, text/xml

Sample:
<ServiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Services.Response">
  <MessageLog xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string></d2p1:string>
    <d2p1:string></d2p1:string>
  </MessageLog>
</ServiceResponse>