POST api/session/log

Request Information

URI Parameters

None.

Body Parameters

SessionLogDTO
NameDescriptionTypeAdditional information
receiverId

integer

Required

startDateTime

date

Required

endDateTime

date

Required

duration

string

Required

String length: inclusive between 0 and 15

Request Formats

application/json, text/json

Sample:
{
  "receiverId": 1,
  "startDateTime": "2026-01-14T17:45:27.2806633+08:00",
  "endDateTime": "2026-01-14T17:45:27.2806633+08:00",
  "duration": "sample string 4"
}

application/xml, text/xml

Sample:
<SessionLogDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/api.Models.DTO">
  <duration>sample string 4</duration>
  <endDateTime>2026-01-14T17:45:27.2806633+08:00</endDateTime>
  <receiverId>1</receiverId>
  <startDateTime>2026-01-14T17:45:27.2806633+08:00</startDateTime>
</SessionLogDTO>

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.