POST api/Action/Approvals

Approval single or multiple - common api for Shift, Leave, Correction, Regularisation

Request Information

URI Parameters

None.

Body Parameters

ApprovalsRequestLayer
NameDescriptionTypeAdditional information
Type

ApprovalType

Required

Status

Status

Required

Id

string

Required

Comment

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Type": 0,
  "Status": 0,
  "Id": "sample string 1",
  "Comment": "sample string 2"
}

application/xml, text/xml

Sample:
<ApprovalsRequestLayer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRiSAPI.Models">
  <Comment>sample string 2</Comment>
  <Id>sample string 1</Id>
  <Status>Error</Status>
  <Type>Error</Type>
</ApprovalsRequestLayer>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.