POST Api/Investigation/CreateWitness/{InvDoc_Id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| InvDoc_Id | integer |
Required |
Body Parameters
WitnessStatementModels| Name | Description | Type | Additional information |
|---|---|---|---|
| WS_Id | integer |
None. |
|
| WS_InvDoc_Id_Fk | integer |
None. |
|
| WS_Name | string |
None. |
|
| WS_Address | string |
None. |
|
| WS_PhoneNumber | integer |
None. |
|
| WS_Statement | string |
None. |
|
| WS_Date | date |
None. |
|
| WS_FileUpload | string |
None. |
|
| WS_TS_Insert | date |
None. |
|
| WS_TS_LastEdited | date |
None. |
|
| WS_UserId_Insert | integer |
None. |
|
| WS_Edited_Uid_FK | integer |
None. |
|
| WS_InActive | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"WS_Id": 1,
"WS_InvDoc_Id_Fk": 1,
"WS_Name": "sample string 1",
"WS_Address": "sample string 2",
"WS_PhoneNumber": 1,
"WS_Statement": "sample string 3",
"WS_Date": "2026-05-10T01:30:25.8894218+05:30",
"WS_FileUpload": "sample string 4",
"WS_TS_Insert": "2026-05-10T01:30:25.8894218+05:30",
"WS_TS_LastEdited": "2026-05-10T01:30:25.8894218+05:30",
"WS_UserId_Insert": 7,
"WS_Edited_Uid_FK": 8,
"WS_InActive": "sample string 9"
}
application/xml, text/xml
Sample:
<WitnessStatementModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KHBWebApi.Models"> <WS_Address>sample string 2</WS_Address> <WS_Date>2026-05-10T01:30:25.8894218+05:30</WS_Date> <WS_Edited_Uid_FK>8</WS_Edited_Uid_FK> <WS_FileUpload>sample string 4</WS_FileUpload> <WS_Id>1</WS_Id> <WS_InActive>sample string 9</WS_InActive> <WS_InvDoc_Id_Fk>1</WS_InvDoc_Id_Fk> <WS_Name>sample string 1</WS_Name> <WS_PhoneNumber>1</WS_PhoneNumber> <WS_Statement>sample string 3</WS_Statement> <WS_TS_Insert>2026-05-10T01:30:25.8894218+05:30</WS_TS_Insert> <WS_TS_LastEdited>2026-05-10T01:30:25.8894218+05:30</WS_TS_LastEdited> <WS_UserId_Insert>7</WS_UserId_Insert> </WitnessStatementModels>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.