POST api/HRSaveAccident
Documentation for 'Post'.
Request Information
Request body formats
application/json, text/json
Sample:
{
"IsNew": true,
"AccidentDetails": {
"COMPANY_CODE": "sample string 1",
"EMP_NUM": "sample string 2",
"ACCIDENT_HST_ID": 3,
"ACCIDENT_DATE": "2026-05-28T10:51:08.1302799-07:00",
"ACCIDENT_DSC": "sample string 5",
"DEPT_CODE": "sample string 6",
"ACCIDENT_LOC_CODE": "sample string 7",
"ACCIDENT_LOCATION": "sample string 8",
"ACCIDENT_CONTACT": "sample string 9",
"OCC_CODE": "sample string 10",
"EMP_OCC": "sample string 11",
"ACCIDENT_TIME": "sample string 12",
"REPORTED_DATE": "2026-05-28T10:51:08.1302799-07:00",
"REPORTED_TIME": "sample string 13",
"REPORTED_TO": "sample string 14",
"REPORTED_EMP_NUM": "sample string 15",
"OBJECTION_TO_CLAIM": "sample string 16",
"INJURY_DSC": "sample string 17",
"ACCIDENT_PREVENT_FLA": "sample string 18",
"WCB_PRINTED_DATE": "2026-05-28T10:51:08.1302799-07:00",
"ACCIDENT_LOST_TIME": "sample string 19",
"INS_USER": "sample string 20",
"INS_DATE": "2026-05-28T10:51:08.1302799-07:00",
"UPD_USER": "sample string 22",
"UPD_DATE": "2026-05-28T10:51:08.1302799-07:00",
"X_EMPLOYEE_NAME": "sample string 24",
"X_REPORTED_TO_EMPLOYEE_NAME": "sample string 25",
"ORIG_HASH": "sample string 26",
"CustomFieldList": [
{
"EntityName": "sample string 1",
"FieldName": "sample string 2",
"Value": "sample string 3",
"Label": "sample string 4",
"FieldType": "sample string 5"
},
{
"EntityName": "sample string 1",
"FieldName": "sample string 2",
"Value": "sample string 3",
"Label": "sample string 4",
"FieldType": "sample string 5"
},
{
"EntityName": "sample string 1",
"FieldName": "sample string 2",
"Value": "sample string 3",
"Label": "sample string 4",
"FieldType": "sample string 5"
}
]
}
}
Response Information
Response body formats
application/json, text/json
Sample:
{
"AccidentID": 1,
"ApiResult": {
"Success": true,
"Warnings": true,
"Description": "sample string 3",
"WarningMessages": [
"sample string 1",
"sample string 2",
"sample string 3"
],
"NotificationErrorMessages": "sample string 4"
}
}