POST api/Warnings/Save
Request Information
URI Parameters
None.
Body Parameters
WarningDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| WarningID | integer |
None. |
|
| WarningTypeID | integer |
None. |
|
| SystemUserID | integer |
None. |
|
| StaffID | integer |
None. |
|
| WarningNameEnglish | string |
None. |
|
| WarningNameArabic | string |
None. |
|
| WarningTypeEnglish | string |
None. |
|
| WarningTypeArabic | string |
None. |
|
| Note | string |
None. |
|
| WarningFilePath | string |
None. |
|
| IsApproved | boolean |
None. |
|
| ApprovalDate | date |
None. |
|
| IsDeleted | boolean |
None. |
|
| CreationDate | date |
None. |
|
| ModifiedDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"WarningID": 1,
"WarningTypeID": 2,
"SystemUserID": 3,
"StaffID": 4,
"WarningNameEnglish": "sample string 5",
"WarningNameArabic": "sample string 6",
"WarningTypeEnglish": "sample string 7",
"WarningTypeArabic": "sample string 8",
"Note": "sample string 9",
"WarningFilePath": "sample string 10",
"IsApproved": true,
"ApprovalDate": "2025-10-27T18:18:34.4801264-04:00",
"IsDeleted": true,
"CreationDate": "2025-10-27T18:18:34.4801264-04:00",
"ModifiedDate": "2025-10-27T18:18:34.4801264-04:00"
}
application/xml, text/xml
Sample:
<WarningDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR.Objects.DTOs"> <ApprovalDate>2025-10-27T18:18:34.4801264-04:00</ApprovalDate> <CreationDate>2025-10-27T18:18:34.4801264-04:00</CreationDate> <IsApproved>true</IsApproved> <IsDeleted>true</IsDeleted> <ModifiedDate>2025-10-27T18:18:34.4801264-04:00</ModifiedDate> <Note>sample string 9</Note> <StaffID>4</StaffID> <SystemUserID>3</SystemUserID> <WarningFilePath>sample string 10</WarningFilePath> <WarningID>1</WarningID> <WarningNameArabic>sample string 6</WarningNameArabic> <WarningNameEnglish>sample string 5</WarningNameEnglish> <WarningTypeArabic>sample string 8</WarningTypeArabic> <WarningTypeEnglish>sample string 7</WarningTypeEnglish> <WarningTypeID>2</WarningTypeID> </WarningDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>