POST api/Leave/SendLeaveApplyEmail

Send mail

Request Information

URI Parameters

None.

Body Parameters

LeaveApplySendMailRequestModel
NameDescriptionTypeAdditional information
EmployeeLeaveID

integer

None.

APIKey

string

None.

UserID

integer

None.

SendToSelf

boolean

None.

AdditionalMailbody

string

None.

SendToApprover

boolean

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "employeeLeaveID": 1,
  "apiKey": "sample string 2",
  "userID": 3,
  "sendToSelf": true,
  "additionalMailbody": "sample string 5",
  "sendToApprover": true
}

application/xml, text/xml

Sample:
<LeaveApplySendMailRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">
  <APIKey>sample string 2</APIKey>
  <AdditionalMailbody>sample string 5</AdditionalMailbody>
  <EmployeeLeaveID>1</EmployeeLeaveID>
  <SendToApprover>true</SendToApprover>
  <SendToSelf>true</SendToSelf>
  <UserID>3</UserID>
</LeaveApplySendMailRequestModel>

multipart/form-data

Sample:
<LeaveApplySendMailRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel"><APIKey>sample string 2</APIKey><AdditionalMailbody>sample string 5</AdditionalMailbody><EmployeeLeaveID>1</EmployeeLeaveID><SendToApprover>true</SendToApprover><SendToSelf>true</SendToSelf><UserID>3</UserID></LeaveApplySendMailRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommonResponseDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</CommonResponseDataModel>

multipart/form-data

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>