POST api/Employmentstatus/EditEmployeeleavetype

Request Information

URI Parameters

None.

Body Parameters

Employeeleavetype
NameDescriptionTypeAdditional information
id

integer

None.

leavetype

string

None.

numberofdays

integer

None.

leavecode

string

None.

description

string

None.

leavepreallocated

integer

None.

leavepredeductable

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:
{
  "id": 1,
  "leavetype": "sample string 2",
  "numberofdays": 1,
  "leavecode": "sample string 3",
  "description": "sample string 4",
  "leavepreallocated": 1,
  "leavepredeductable": 1,
  "createdby": 1,
  "modifiedby": 1,
  "createddate": "2019-06-18T02:14:58.109-04:00",
  "modifieddate": "2019-06-18T02:14:58.109-04:00",
  "isactive": 1,
  "StatusMessage": "sample string 5"
}

text/html

Sample:
{"id":1,"leavetype":"sample string 2","numberofdays":1,"leavecode":"sample string 3","description":"sample string 4","leavepreallocated":1,"leavepredeductable":1,"createdby":1,"modifiedby":1,"createddate":"2019-06-18T02:14:58.109-04:00","modifieddate":"2019-06-18T02:14:58.109-04:00","isactive":1,"StatusMessage":"sample string 5"}

application/xml, text/xml

Sample:
<Employeeleavetype xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RtsDb.Service.Models.EmployeeConfig">
  <StatusMessage>sample string 5</StatusMessage>
  <createdby>1</createdby>
  <createddate>2019-06-18T02:14:58.109-04:00</createddate>
  <description>sample string 4</description>
  <id>1</id>
  <isactive>1</isactive>
  <leavecode>sample string 3</leavecode>
  <leavepreallocated>1</leavepreallocated>
  <leavepredeductable>1</leavepredeductable>
  <leavetype>sample string 2</leavetype>
  <modifiedby>1</modifiedby>
  <modifieddate>2019-06-18T02:14:58.109-04:00</modifieddate>
  <numberofdays>1</numberofdays>
</Employeeleavetype>

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

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.