POST API/Vehicle/SetVehicleService
Request Information
URI Parameters
None.
Body Parameters
VehicleServiceM| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | globally unique identifier |
None. |
|
| Vehicle_ID | globally unique identifier |
None. |
|
| ServiceType_ID | integer |
None. |
|
| Description | string |
None. |
|
| Amount | integer |
None. |
|
| ExpireDate | date |
None. |
|
| CreateDate | date |
None. |
|
| UpdatePerson_ID | globally unique identifier |
None. |
|
| InstallationDate | date |
None. |
|
| Status | boolean |
None. |
|
| SendForExpens | Collection of SendForExpensM |
None. |
|
| documents | Collection of DocumentM |
None. |
|
| documentsForService | Collection of DocumentM |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": "200bed00-0a06-4b17-99c7-18f7ed22ba0f",
"Vehicle_ID": "f63e9abf-0b99-43ca-a97c-b43ffb354cf9",
"ServiceType_ID": 3,
"Description": "sample string 4",
"Amount": 1,
"ExpireDate": "2026-01-17T05:31:06.6128158+05:00",
"CreateDate": "2026-01-17T05:31:06.6128158+05:00",
"UpdatePerson_ID": "720b6b00-7ad1-4a7d-8667-930930a78701",
"InstallationDate": "2026-01-17T05:31:06.6128158+05:00",
"Status": true,
"SendForExpens": [
{
"dtS": "2026-01-17T05:31:06.6128158+05:00",
"dtE": "2026-01-17T05:31:06.6128158+05:00",
"ID": "c0309541-1ee2-4d95-8b10-1754fa17dc7b",
"VehicleService_ID": "a4a04f9f-8110-48fd-8f88-b205332b5d5e",
"Department_ID": 3,
"Stock_ID": "aaab63a2-5fff-4cdf-9d00-467fadf598e1",
"UnitOfMeasurement": 5,
"Quantity": 6,
"InventoryNumber": 7,
"Price": 8,
"Sum": 9,
"CreateDate": "2026-01-17T05:31:06.6128158+05:00",
"UpdatePerson_ID": "fbcd34e0-0832-4457-a6fc-2acb8004684f",
"UpdateDate": "2026-01-17T05:31:06.6128158+05:00",
"StockIncoming_ID": "4bab3919-875b-4596-9b8e-210c3955aadb",
"Stock": {
"ID": "75ef585a-4427-4372-8c13-9ff5e5c13d5d",
"Code": 2,
"Name": "sample string 3",
"CreateDate": "2026-01-17T05:31:06.6128158+05:00"
}
},
{
"dtS": "2026-01-17T05:31:06.6128158+05:00",
"dtE": "2026-01-17T05:31:06.6128158+05:00",
"ID": "c0309541-1ee2-4d95-8b10-1754fa17dc7b",
"VehicleService_ID": "a4a04f9f-8110-48fd-8f88-b205332b5d5e",
"Department_ID": 3,
"Stock_ID": "aaab63a2-5fff-4cdf-9d00-467fadf598e1",
"UnitOfMeasurement": 5,
"Quantity": 6,
"InventoryNumber": 7,
"Price": 8,
"Sum": 9,
"CreateDate": "2026-01-17T05:31:06.6128158+05:00",
"UpdatePerson_ID": "fbcd34e0-0832-4457-a6fc-2acb8004684f",
"UpdateDate": "2026-01-17T05:31:06.6128158+05:00",
"StockIncoming_ID": "4bab3919-875b-4596-9b8e-210c3955aadb",
"Stock": {
"ID": "75ef585a-4427-4372-8c13-9ff5e5c13d5d",
"Code": 2,
"Name": "sample string 3",
"CreateDate": "2026-01-17T05:31:06.6128158+05:00"
}
}
],
"documents": [
{
"id": "c8f697d8-7dbc-4d16-8230-4781f105435a",
"documentType": 1,
"fileName": "sample string 1",
"fileType": "sample string 2",
"fileContent": "QEA=",
"createDate": "2026-01-17T05:31:06.6128158+05:00"
},
{
"id": "c8f697d8-7dbc-4d16-8230-4781f105435a",
"documentType": 1,
"fileName": "sample string 1",
"fileType": "sample string 2",
"fileContent": "QEA=",
"createDate": "2026-01-17T05:31:06.6128158+05:00"
}
],
"documentsForService": [
{
"id": "c8f697d8-7dbc-4d16-8230-4781f105435a",
"documentType": 1,
"fileName": "sample string 1",
"fileType": "sample string 2",
"fileContent": "QEA=",
"createDate": "2026-01-17T05:31:06.6128158+05:00"
},
{
"id": "c8f697d8-7dbc-4d16-8230-4781f105435a",
"documentType": 1,
"fileName": "sample string 1",
"fileType": "sample string 2",
"fileContent": "QEA=",
"createDate": "2026-01-17T05:31:06.6128158+05:00"
}
]
}
application/xml, text/xml
Sample:
<VehicleServiceM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CarPark.Models.Basic">
<Amount>1</Amount>
<CreateDate>2026-01-17T05:31:06.6128158+05:00</CreateDate>
<Description>sample string 4</Description>
<ExpireDate>2026-01-17T05:31:06.6128158+05:00</ExpireDate>
<ID>200bed00-0a06-4b17-99c7-18f7ed22ba0f</ID>
<InstallationDate>2026-01-17T05:31:06.6128158+05:00</InstallationDate>
<SendForExpens>
<SendForExpensM>
<CreateDate>2026-01-17T05:31:06.6128158+05:00</CreateDate>
<Department_ID>3</Department_ID>
<ID>c0309541-1ee2-4d95-8b10-1754fa17dc7b</ID>
<InventoryNumber>7</InventoryNumber>
<Price>8</Price>
<Quantity>6</Quantity>
<Stock>
<Code>2</Code>
<CreateDate>2026-01-17T05:31:06.6128158+05:00</CreateDate>
<ID>75ef585a-4427-4372-8c13-9ff5e5c13d5d</ID>
<Name>sample string 3</Name>
</Stock>
<StockIncoming_ID>4bab3919-875b-4596-9b8e-210c3955aadb</StockIncoming_ID>
<Stock_ID>aaab63a2-5fff-4cdf-9d00-467fadf598e1</Stock_ID>
<Sum>9</Sum>
<UnitOfMeasurement>5</UnitOfMeasurement>
<UpdateDate>2026-01-17T05:31:06.6128158+05:00</UpdateDate>
<UpdatePerson_ID>fbcd34e0-0832-4457-a6fc-2acb8004684f</UpdatePerson_ID>
<VehicleService_ID>a4a04f9f-8110-48fd-8f88-b205332b5d5e</VehicleService_ID>
<dtE>2026-01-17T05:31:06.6128158+05:00</dtE>
<dtS>2026-01-17T05:31:06.6128158+05:00</dtS>
</SendForExpensM>
<SendForExpensM>
<CreateDate>2026-01-17T05:31:06.6128158+05:00</CreateDate>
<Department_ID>3</Department_ID>
<ID>c0309541-1ee2-4d95-8b10-1754fa17dc7b</ID>
<InventoryNumber>7</InventoryNumber>
<Price>8</Price>
<Quantity>6</Quantity>
<Stock>
<Code>2</Code>
<CreateDate>2026-01-17T05:31:06.6128158+05:00</CreateDate>
<ID>75ef585a-4427-4372-8c13-9ff5e5c13d5d</ID>
<Name>sample string 3</Name>
</Stock>
<StockIncoming_ID>4bab3919-875b-4596-9b8e-210c3955aadb</StockIncoming_ID>
<Stock_ID>aaab63a2-5fff-4cdf-9d00-467fadf598e1</Stock_ID>
<Sum>9</Sum>
<UnitOfMeasurement>5</UnitOfMeasurement>
<UpdateDate>2026-01-17T05:31:06.6128158+05:00</UpdateDate>
<UpdatePerson_ID>fbcd34e0-0832-4457-a6fc-2acb8004684f</UpdatePerson_ID>
<VehicleService_ID>a4a04f9f-8110-48fd-8f88-b205332b5d5e</VehicleService_ID>
<dtE>2026-01-17T05:31:06.6128158+05:00</dtE>
<dtS>2026-01-17T05:31:06.6128158+05:00</dtS>
</SendForExpensM>
</SendForExpens>
<ServiceType_ID>3</ServiceType_ID>
<Status>true</Status>
<UpdatePerson_ID>720b6b00-7ad1-4a7d-8667-930930a78701</UpdatePerson_ID>
<Vehicle_ID>f63e9abf-0b99-43ca-a97c-b43ffb354cf9</Vehicle_ID>
<documents>
<DocumentM>
<createDate>2026-01-17T05:31:06.6128158+05:00</createDate>
<documentType>1</documentType>
<fileContent>QEA=</fileContent>
<fileName>sample string 1</fileName>
<fileType>sample string 2</fileType>
<id>c8f697d8-7dbc-4d16-8230-4781f105435a</id>
</DocumentM>
<DocumentM>
<createDate>2026-01-17T05:31:06.6128158+05:00</createDate>
<documentType>1</documentType>
<fileContent>QEA=</fileContent>
<fileName>sample string 1</fileName>
<fileType>sample string 2</fileType>
<id>c8f697d8-7dbc-4d16-8230-4781f105435a</id>
</DocumentM>
</documents>
<documentsForService>
<DocumentM>
<createDate>2026-01-17T05:31:06.6128158+05:00</createDate>
<documentType>1</documentType>
<fileContent>QEA=</fileContent>
<fileName>sample string 1</fileName>
<fileType>sample string 2</fileType>
<id>c8f697d8-7dbc-4d16-8230-4781f105435a</id>
</DocumentM>
<DocumentM>
<createDate>2026-01-17T05:31:06.6128158+05:00</createDate>
<documentType>1</documentType>
<fileContent>QEA=</fileContent>
<fileName>sample string 1</fileName>
<fileType>sample string 2</fileType>
<id>c8f697d8-7dbc-4d16-8230-4781f105435a</id>
</DocumentM>
</documentsForService>
</VehicleServiceM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>