POST api/AdminTime
Adds a new admin time record for the user.
Request Information
URI Parameters
None.
Body Parameters
input data.
AddAdminTimeRequest| Name | Description | Type | Additional 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:28.3769681-04:00",
"TimeOut": "2026-05-05T07:15:28.3769681-04:00",
"Notes": "sample string 4",
"DateCreatedtUtc": "2026-05-05T07:15:28.3769681-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:28.3769681-04:00</DateCreatedtUtc> <EmployeeId>1</EmployeeId> <Notes>sample string 4</Notes> <TimeIn>2026-05-05T07:15:28.3769681-04:00</TimeIn> <TimeOut>2026-05-05T07:15:28.3769681-04:00</TimeOut> </AddAdminTimeRequest>
application/x-www-form-urlencoded
Sample:
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| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |