POST API/Vehicle/SetVehicleService

Request Information

URI Parameters

None.

Body Parameters

VehicleServiceM
NameDescriptionTypeAdditional 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": "ecc11895-057b-4347-8f7f-c10bb9ee5f74",
  "Vehicle_ID": "5c3d0d3a-2c72-48bb-b808-6518b8199712",
  "ServiceType_ID": 3,
  "Description": "sample string 4",
  "Amount": 1,
  "ExpireDate": "2026-03-18T05:00:14.9602071+05:00",
  "CreateDate": "2026-03-18T05:00:14.9602071+05:00",
  "UpdatePerson_ID": "e3711418-4a7d-4a98-9525-95ae00d5390e",
  "InstallationDate": "2026-03-18T05:00:14.9602071+05:00",
  "Status": true,
  "SendForExpens": [
    {
      "dtS": "2026-03-18T05:00:14.9602071+05:00",
      "dtE": "2026-03-18T05:00:14.9602071+05:00",
      "ID": "0b5920b1-6ca7-4279-bdbc-19a29b2bda8c",
      "VehicleService_ID": "70684029-a685-4e72-b68d-a2933340ebe2",
      "Department_ID": 3,
      "Stock_ID": "d0ac8aca-2936-48bf-aac8-c556e2b387ff",
      "UnitOfMeasurement": 5,
      "Quantity": 6,
      "InventoryNumber": 7,
      "Price": 8,
      "Sum": 9,
      "CreateDate": "2026-03-18T05:00:14.9602071+05:00",
      "UpdatePerson_ID": "7064cb3f-249a-43f5-90d6-5b421963558f",
      "UpdateDate": "2026-03-18T05:00:14.9602071+05:00",
      "StockIncoming_ID": "882b3c15-0957-43a7-b2a2-a0ddee120bda",
      "Stock": {
        "ID": "0352aa59-1255-46fe-a81e-8b66c33eac03",
        "Code": 2,
        "Name": "sample string 3",
        "CreateDate": "2026-03-18T05:00:14.9602071+05:00"
      }
    },
    {
      "dtS": "2026-03-18T05:00:14.9602071+05:00",
      "dtE": "2026-03-18T05:00:14.9602071+05:00",
      "ID": "0b5920b1-6ca7-4279-bdbc-19a29b2bda8c",
      "VehicleService_ID": "70684029-a685-4e72-b68d-a2933340ebe2",
      "Department_ID": 3,
      "Stock_ID": "d0ac8aca-2936-48bf-aac8-c556e2b387ff",
      "UnitOfMeasurement": 5,
      "Quantity": 6,
      "InventoryNumber": 7,
      "Price": 8,
      "Sum": 9,
      "CreateDate": "2026-03-18T05:00:14.9602071+05:00",
      "UpdatePerson_ID": "7064cb3f-249a-43f5-90d6-5b421963558f",
      "UpdateDate": "2026-03-18T05:00:14.9602071+05:00",
      "StockIncoming_ID": "882b3c15-0957-43a7-b2a2-a0ddee120bda",
      "Stock": {
        "ID": "0352aa59-1255-46fe-a81e-8b66c33eac03",
        "Code": 2,
        "Name": "sample string 3",
        "CreateDate": "2026-03-18T05:00:14.9602071+05:00"
      }
    }
  ],
  "documents": [
    {
      "id": "436c4ef2-a72c-407e-a76d-3dd3fac88c43",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-03-18T05:00:14.9611614+05:00"
    },
    {
      "id": "436c4ef2-a72c-407e-a76d-3dd3fac88c43",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-03-18T05:00:14.9611614+05:00"
    }
  ],
  "documentsForService": [
    {
      "id": "436c4ef2-a72c-407e-a76d-3dd3fac88c43",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-03-18T05:00:14.9611614+05:00"
    },
    {
      "id": "436c4ef2-a72c-407e-a76d-3dd3fac88c43",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-03-18T05:00:14.9611614+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-03-18T05:00:14.9602071+05:00</CreateDate>
  <Description>sample string 4</Description>
  <ExpireDate>2026-03-18T05:00:14.9602071+05:00</ExpireDate>
  <ID>ecc11895-057b-4347-8f7f-c10bb9ee5f74</ID>
  <InstallationDate>2026-03-18T05:00:14.9602071+05:00</InstallationDate>
  <SendForExpens>
    <SendForExpensM>
      <CreateDate>2026-03-18T05:00:14.9602071+05:00</CreateDate>
      <Department_ID>3</Department_ID>
      <ID>0b5920b1-6ca7-4279-bdbc-19a29b2bda8c</ID>
      <InventoryNumber>7</InventoryNumber>
      <Price>8</Price>
      <Quantity>6</Quantity>
      <Stock>
        <Code>2</Code>
        <CreateDate>2026-03-18T05:00:14.9602071+05:00</CreateDate>
        <ID>0352aa59-1255-46fe-a81e-8b66c33eac03</ID>
        <Name>sample string 3</Name>
      </Stock>
      <StockIncoming_ID>882b3c15-0957-43a7-b2a2-a0ddee120bda</StockIncoming_ID>
      <Stock_ID>d0ac8aca-2936-48bf-aac8-c556e2b387ff</Stock_ID>
      <Sum>9</Sum>
      <UnitOfMeasurement>5</UnitOfMeasurement>
      <UpdateDate>2026-03-18T05:00:14.9602071+05:00</UpdateDate>
      <UpdatePerson_ID>7064cb3f-249a-43f5-90d6-5b421963558f</UpdatePerson_ID>
      <VehicleService_ID>70684029-a685-4e72-b68d-a2933340ebe2</VehicleService_ID>
      <dtE>2026-03-18T05:00:14.9602071+05:00</dtE>
      <dtS>2026-03-18T05:00:14.9602071+05:00</dtS>
    </SendForExpensM>
    <SendForExpensM>
      <CreateDate>2026-03-18T05:00:14.9602071+05:00</CreateDate>
      <Department_ID>3</Department_ID>
      <ID>0b5920b1-6ca7-4279-bdbc-19a29b2bda8c</ID>
      <InventoryNumber>7</InventoryNumber>
      <Price>8</Price>
      <Quantity>6</Quantity>
      <Stock>
        <Code>2</Code>
        <CreateDate>2026-03-18T05:00:14.9602071+05:00</CreateDate>
        <ID>0352aa59-1255-46fe-a81e-8b66c33eac03</ID>
        <Name>sample string 3</Name>
      </Stock>
      <StockIncoming_ID>882b3c15-0957-43a7-b2a2-a0ddee120bda</StockIncoming_ID>
      <Stock_ID>d0ac8aca-2936-48bf-aac8-c556e2b387ff</Stock_ID>
      <Sum>9</Sum>
      <UnitOfMeasurement>5</UnitOfMeasurement>
      <UpdateDate>2026-03-18T05:00:14.9602071+05:00</UpdateDate>
      <UpdatePerson_ID>7064cb3f-249a-43f5-90d6-5b421963558f</UpdatePerson_ID>
      <VehicleService_ID>70684029-a685-4e72-b68d-a2933340ebe2</VehicleService_ID>
      <dtE>2026-03-18T05:00:14.9602071+05:00</dtE>
      <dtS>2026-03-18T05:00:14.9602071+05:00</dtS>
    </SendForExpensM>
  </SendForExpens>
  <ServiceType_ID>3</ServiceType_ID>
  <Status>true</Status>
  <UpdatePerson_ID>e3711418-4a7d-4a98-9525-95ae00d5390e</UpdatePerson_ID>
  <Vehicle_ID>5c3d0d3a-2c72-48bb-b808-6518b8199712</Vehicle_ID>
  <documents>
    <DocumentM>
      <createDate>2026-03-18T05:00:14.9611614+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>436c4ef2-a72c-407e-a76d-3dd3fac88c43</id>
    </DocumentM>
    <DocumentM>
      <createDate>2026-03-18T05:00:14.9611614+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>436c4ef2-a72c-407e-a76d-3dd3fac88c43</id>
    </DocumentM>
  </documents>
  <documentsForService>
    <DocumentM>
      <createDate>2026-03-18T05:00:14.9611614+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>436c4ef2-a72c-407e-a76d-3dd3fac88c43</id>
    </DocumentM>
    <DocumentM>
      <createDate>2026-03-18T05:00:14.9611614+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>436c4ef2-a72c-407e-a76d-3dd3fac88c43</id>
    </DocumentM>
  </documentsForService>
</VehicleServiceM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response 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>