POST api/Employee1/Addmainempholidays

Request Information

URI Parameters

None.

Body Parameters

Mainempholidays
NameDescriptionTypeAdditional information
holiday_id

integer

None.

user_id

integer

None.

holiday_group_id

integer

None.

createdby

integer

None.

modifiedby

integer

None.

createddate

date

None.

modifieddate

date

None.

isactive

integer

None.

StatusMessage

string

None.

Request Formats

application/json, text/json

Sample:
{
  "holiday_id": 1,
  "user_id": 1,
  "holiday_group_id": 1,
  "createdby": 1,
  "modifiedby": 1,
  "createddate": "2019-06-18T00:47:05.145-04:00",
  "modifieddate": "2019-06-18T00:47:05.145-04:00",
  "isactive": 1,
  "StatusMessage": "sample string 2"
}

text/html

Sample:
{"holiday_id":1,"user_id":1,"holiday_group_id":1,"createdby":1,"modifiedby":1,"createddate":"2019-06-18T00:47:05.145-04:00","modifieddate":"2019-06-18T00:47:05.145-04:00","isactive":1,"StatusMessage":"sample string 2"}

application/xml, text/xml

Sample:
<Mainempholidays xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RtsDb.Service.Models.Employee">
  <StatusMessage>sample string 2</StatusMessage>
  <createdby>1</createdby>
  <createddate>2019-06-18T00:47:05.145-04:00</createddate>
  <holiday_group_id>1</holiday_group_id>
  <holiday_id>1</holiday_id>
  <isactive>1</isactive>
  <modifiedby>1</modifiedby>
  <modifieddate>2019-06-18T00:47:05.145-04:00</modifieddate>
  <user_id>1</user_id>
</Mainempholidays>

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

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.