POST api/{version}/AdminTime

Adds a new admin time record for the user.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

input data.

AddAdminTimeRequest
NameDescriptionTypeAdditional information
EmployeeId

integer

Required

Range: inclusive between 1 and 32767

AdminTimeTypeId

integer

None.

TimeIn

date

Required

TimeOut

date

Required

Notes

string

None.

DateCreatedtUtc

date

Required

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "AdminTimeTypeId": 1,
  "TimeIn": "2026-05-05T07:15:32.4807603-04:00",
  "TimeOut": "2026-05-05T07:15:32.4807603-04:00",
  "Notes": "sample string 4",
  "DateCreatedtUtc": "2026-05-05T07:15:32.4807603-04:00"
}

application/xml, text/xml

Sample:
<AddAdminTimeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.DTO.AdminTimeActions">
  <AdminTimeTypeId>1</AdminTimeTypeId>
  <DateCreatedtUtc>2026-05-05T07:15:32.4807603-04:00</DateCreatedtUtc>
  <EmployeeId>1</EmployeeId>
  <Notes>sample string 4</Notes>
  <TimeIn>2026-05-05T07:15:32.4807603-04:00</TimeIn>
  <TimeOut>2026-05-05T07:15:32.4807603-04:00</TimeOut>
</AddAdminTimeRequest>

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

Response Information

Resource Description

An Http response message with the folliwing status codes: 200 = success (always includes a JSON with the Id of the new admin time record), 400 = bad request (the request is malformed or with invalid data), 500 = something went wrong (the request was not processed)

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.