POST api/ServiceReport
Request Information
URI Parameters
None.
Body Parameters
ServiceReport| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| AccountId | integer |
None. |
|
| UserId | integer |
None. |
|
| ReceiptNo | string |
None. |
|
| ServiceDate | date |
None. |
|
| ServiceTime | time interval |
None. |
|
| Make | string |
None. |
|
| ContactPerson | string |
None. |
|
| SerialNo | string |
None. |
|
| RunningHrs | string |
None. |
|
| VisitTypeId | integer |
None. |
|
| FaultId | integer |
None. |
|
| FaultReported | string |
None. |
|
| Action | string |
None. |
|
| Remark | string |
None. |
|
| Result | string |
None. |
|
| ImagePath | string |
None. |
|
| Active | boolean |
None. |
|
| CreatedBy | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"AccountId": 2,
"UserId": 3,
"ReceiptNo": "sample string 4",
"ServiceDate": "2025-12-16T13:16:07.834814+05:30",
"ServiceTime": "00:00:00.1234567",
"Make": "sample string 7",
"ContactPerson": "sample string 8",
"SerialNo": "sample string 9",
"RunningHrs": "sample string 10",
"VisitTypeId": 11,
"FaultId": 12,
"FaultReported": "sample string 13",
"Action": "sample string 14",
"Remark": "sample string 15",
"Result": "sample string 16",
"ImagePath": "sample string 17",
"Active": true,
"CreatedBy": "sample string 19"
}
application/xml, text/xml
Sample:
<ServiceReport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrueCodeAPI.Model"> <Active>true</Active> <CreatedBy>sample string 19</CreatedBy> <Id>0</Id> <AccountId>2</AccountId> <Action>sample string 14</Action> <ContactPerson>sample string 8</ContactPerson> <FaultId>12</FaultId> <FaultReported>sample string 13</FaultReported> <Id>1</Id> <ImagePath>sample string 17</ImagePath> <Make>sample string 7</Make> <ReceiptNo>sample string 4</ReceiptNo> <Remark>sample string 15</Remark> <Result>sample string 16</Result> <RunningHrs>sample string 10</RunningHrs> <SerialNo>sample string 9</SerialNo> <ServiceDate>2025-12-16T13:16:07.834814+05:30</ServiceDate> <ServiceTime>PT0.1234567S</ServiceTime> <UserId>3</UserId> <VisitTypeId>11</VisitTypeId> </ServiceReport>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.