POST api/HR/SaveEvent

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
Event
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "EmpId": 1,
  "EventId": 1,
  "EventType": 2,
  "EventName": "sample string 3",
  "DayStatus": 4,
  "StartDate": "2024-11-28T12:37:39.5005595+02:00",
  "EndDate": "2024-11-28T12:37:39.5005595+02:00",
  "Minutes": 1,
  "RequestStatus": 5,
  "RespondingEmpId": 1,
  "RespondingDate": "2024-11-28T12:37:39.5005595+02:00",
  "CancelingEmpId": 1,
  "CancelingDate": "2024-11-28T12:37:39.5005595+02:00",
  "Location": "sample string 6",
  "ProjectId": 1,
  "Notes": "sample string 7",
  "EmployeeName": "sample string 8",
  "EmployeeCode": "sample string 9",
  "DayStatusName": "sample string 10",
  "RequestStatusName": "sample string 11",
  "URL": "sample string 12",
  "ProjectName": "sample string 13",
  "RespondingEmployee": "sample string 14",
  "VacationDuration": 15.1,
  "EventCreatedDate": "2024-11-28T12:37:39.5015356+02:00",
  "UnitName": "sample string 16",
  "DepartmentName": "sample string 17",
  "JobName": "sample string 18",
  "NationalID": "sample string 19",
  "InsuranceNumber": "sample string 20",
  "Company": "sample string 21",
  "WorkLocation": "sample string 22",
  "Balance": "sample string 23",
  "Direction": "sample string 24",
  "MinBalance": 25.0,
  "TotalBalance": 26.0,
  "MaxBalance": 27.0,
  "InCT": "sample string 28",
  "CreatedEmpId": 1,
  "CreatedDate": "2024-11-28T12:37:39.5015356+02:00",
  "UpdatedEmpId": 1,
  "UpdatedDate": "2024-11-28T12:37:39.5015356+02:00",
  "DeletedEmpId": 1,
  "DeletedDate": "2024-11-28T12:37:39.5015356+02:00",
  "IsDeleted": true,
  "Id": 30
}

application/xml, text/xml

Sample:
<Att_EmployeeEvents xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPPlus_MOdel.Model">
  <Id>30</Id>
  <CreatedDate>2024-11-28T12:37:39.5015356+02:00</CreatedDate>
  <CreatedEmpId>1</CreatedEmpId>
  <DeletedDate>2024-11-28T12:37:39.5015356+02:00</DeletedDate>
  <DeletedEmpId>1</DeletedEmpId>
  <IsDeleted>true</IsDeleted>
  <UpdatedDate>2024-11-28T12:37:39.5015356+02:00</UpdatedDate>
  <UpdatedEmpId>1</UpdatedEmpId>
  <Balance>sample string 23</Balance>
  <CancelingDate>2024-11-28T12:37:39.5005595+02:00</CancelingDate>
  <CancelingEmpId>1</CancelingEmpId>
  <Company>sample string 21</Company>
  <DayStatus>4</DayStatus>
  <DayStatusName>sample string 10</DayStatusName>
  <DepartmentName>sample string 17</DepartmentName>
  <Direction>sample string 24</Direction>
  <EmpId>1</EmpId>
  <EmployeeCode>sample string 9</EmployeeCode>
  <EmployeeName>sample string 8</EmployeeName>
  <EndDate>2024-11-28T12:37:39.5005595+02:00</EndDate>
  <EventCreatedDate>2024-11-28T12:37:39.5015356+02:00</EventCreatedDate>
  <EventId>1</EventId>
  <EventName>sample string 3</EventName>
  <EventType>2</EventType>
  <InCT>sample string 28</InCT>
  <InsuranceNumber>sample string 20</InsuranceNumber>
  <JobName>sample string 18</JobName>
  <Location>sample string 6</Location>
  <MaxBalance>27</MaxBalance>
  <MinBalance>25</MinBalance>
  <Minutes>1</Minutes>
  <NationalID>sample string 19</NationalID>
  <Notes>sample string 7</Notes>
  <ProjectId>1</ProjectId>
  <ProjectName>sample string 13</ProjectName>
  <RequestStatus>5</RequestStatus>
  <RequestStatusName>sample string 11</RequestStatusName>
  <RespondingDate>2024-11-28T12:37:39.5005595+02:00</RespondingDate>
  <RespondingEmpId>1</RespondingEmpId>
  <RespondingEmployee>sample string 14</RespondingEmployee>
  <StartDate>2024-11-28T12:37:39.5005595+02:00</StartDate>
  <TotalBalance>26</TotalBalance>
  <URL>sample string 12</URL>
  <UnitName>sample string 16</UnitName>
  <VacationDuration>15.1</VacationDuration>
  <WorkLocation>sample string 22</WorkLocation>
</Att_EmployeeEvents>

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

Response Information

No documentation available.

Response body formats

application/json, text/json

Sample:
{
  "Result": true,
  "ErrorMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<GeneralErrors xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP_Plus">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
</GeneralErrors>