POST api/admintime/search

Retuns list of admin time records matching given search criteria

Request Information

URI Parameters

None.

Body Parameters

Search criteria for admin times. Either ID of Admin Time or Start Date of the admin time must be specified

SearchAdminTimeRequest
NameDescriptionTypeAdditional information
EmployeeId

integer

Required

Range: inclusive between 1 and 32767

StartDate

date

None.

EndDate

date

None.

AdminTimeId

integer

None.

AdminTimeTypeId

integer

None.

IsApproved

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "StartDate": "2026-05-05T07:16:34.6707184-04:00",
  "EndDate": "2026-05-05T07:16:34.6707184-04:00",
  "AdminTimeId": 1,
  "AdminTimeTypeId": 1,
  "IsApproved": true
}

application/xml, text/xml

Sample:
<SearchAdminTimeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.DTO.AdminTimeActions">
  <AdminTimeId>1</AdminTimeId>
  <AdminTimeTypeId>1</AdminTimeTypeId>
  <EmployeeId>1</EmployeeId>
  <EndDate>2026-05-05T07:16:34.6707184-04:00</EndDate>
  <IsApproved>true</IsApproved>
  <StartDate>2026-05-05T07:16:34.6707184-04:00</StartDate>
</SearchAdminTimeRequest>

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

Response Information

Resource Description

ID of new Admin Time record

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.