POST api/EmployeeTimeSheet/RejectTimeSheet

Request Information

URI Parameters

None.

Body Parameters

TimeSheetHeaders
NameDescriptionTypeAdditional information
ID

integer

None.

user_id

integer

None.

ClientName

string

None.

TimeSheetComment

string

None.

FileName

string

None.

ClientTimeSheetComment

string

None.

ReasonForBeforeSubmit

string

None.

SubmittedDate

date

None.

Status

boolean

None.

Approve_Reject_By

string

None.

Approve_Reject_Date

date

None.

RejectComment

string

None.

StatusMessage

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "user_id": 2,
  "ClientName": "sample string 3",
  "TimeSheetComment": "sample string 4",
  "FileName": "sample string 5",
  "ClientTimeSheetComment": "sample string 6",
  "ReasonForBeforeSubmit": "sample string 7",
  "SubmittedDate": "2019-06-18T00:47:08.356-04:00",
  "Status": true,
  "Approve_Reject_By": "sample string 8",
  "Approve_Reject_Date": "2019-06-18T00:47:08.356-04:00",
  "RejectComment": "sample string 9",
  "StatusMessage": "sample string 10"
}

text/html

Sample:
{"ID":1,"user_id":2,"ClientName":"sample string 3","TimeSheetComment":"sample string 4","FileName":"sample string 5","ClientTimeSheetComment":"sample string 6","ReasonForBeforeSubmit":"sample string 7","SubmittedDate":"2019-06-18T00:47:08.356-04:00","Status":true,"Approve_Reject_By":"sample string 8","Approve_Reject_Date":"2019-06-18T00:47:08.356-04:00","RejectComment":"sample string 9","StatusMessage":"sample string 10"}

application/xml, text/xml

Sample:
<TimeSheetHeaders xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RtsDb.Service.Models.Time">
  <Approve_Reject_By>sample string 8</Approve_Reject_By>
  <Approve_Reject_Date>2019-06-18T00:47:08.356-04:00</Approve_Reject_Date>
  <ClientName>sample string 3</ClientName>
  <ClientTimeSheetComment>sample string 6</ClientTimeSheetComment>
  <FileName>sample string 5</FileName>
  <ID>1</ID>
  <ReasonForBeforeSubmit>sample string 7</ReasonForBeforeSubmit>
  <RejectComment>sample string 9</RejectComment>
  <Status>true</Status>
  <StatusMessage>sample string 10</StatusMessage>
  <SubmittedDate>2019-06-18T00:47:08.356-04:00</SubmittedDate>
  <TimeSheetComment>sample string 4</TimeSheetComment>
  <user_id>2</user_id>
</TimeSheetHeaders>

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

Response Information

Resource Description

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.