POST api/activitylog

Request Information

URI Parameters

None.

Body Parameters

ActivityLog
NameDescriptionTypeAdditional information
ActivityId

integer

None.

VisitorId

integer

None.

HostId

integer

None.

ActivityType

string

None.

Description

string

None.

Details

Collection of Object

None.

Timestamp

date

None.

PerformedBy

string

None.

VisitorName

string

None.

HostName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ActivityId": 1,
  "VisitorId": 1,
  "HostId": 1,
  "ActivityType": "sample string 2",
  "Description": "sample string 3",
  "Details": null,
  "Timestamp": "2025-12-22T19:55:19.1634146+05:30",
  "PerformedBy": "sample string 5",
  "VisitorName": "sample string 6",
  "HostName": "sample string 7"
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.