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": "e9cfb94a-c3c1-49bc-9624-70a9f7fae2f9",
  "Vehicle_ID": "6cb99991-8135-47b2-8cf6-7f083935dfb5",
  "ServiceType_ID": 3,
  "Description": "sample string 4",
  "Amount": 1,
  "ExpireDate": "2026-07-16T03:15:48.5254126+05:00",
  "CreateDate": "2026-07-16T03:15:48.5254126+05:00",
  "UpdatePerson_ID": "cf4b388f-b52a-4004-bce0-4796280b5741",
  "InstallationDate": "2026-07-16T03:15:48.5254126+05:00",
  "Status": true,
  "SendForExpens": [
    {
      "dtS": "2026-07-16T03:15:48.5254126+05:00",
      "dtE": "2026-07-16T03:15:48.5254126+05:00",
      "ID": "f432cf28-6089-4188-9fcf-50201f7e324b",
      "VehicleService_ID": "8eb9e662-2075-4f3c-868d-3619a3a52609",
      "Department_ID": 3,
      "Stock_ID": "bb231326-88ff-46e1-a422-6fc42c313517",
      "UnitOfMeasurement": 5,
      "Quantity": 6,
      "InventoryNumber": 7,
      "Price": 8,
      "Sum": 9,
      "CreateDate": "2026-07-16T03:15:48.5254126+05:00",
      "UpdatePerson_ID": "1a8f22ad-db40-48a9-95e4-2242920c1bae",
      "UpdateDate": "2026-07-16T03:15:48.5254126+05:00",
      "StockIncoming_ID": "c2f19f56-dd6f-4810-9930-b81a11c1d27f",
      "Stock": {
        "ID": "0eeb2fe6-ebcf-4354-85a5-359fc2c56638",
        "Code": 2,
        "Name": "sample string 3",
        "CreateDate": "2026-07-16T03:15:48.5254126+05:00"
      }
    },
    {
      "dtS": "2026-07-16T03:15:48.5254126+05:00",
      "dtE": "2026-07-16T03:15:48.5254126+05:00",
      "ID": "f432cf28-6089-4188-9fcf-50201f7e324b",
      "VehicleService_ID": "8eb9e662-2075-4f3c-868d-3619a3a52609",
      "Department_ID": 3,
      "Stock_ID": "bb231326-88ff-46e1-a422-6fc42c313517",
      "UnitOfMeasurement": 5,
      "Quantity": 6,
      "InventoryNumber": 7,
      "Price": 8,
      "Sum": 9,
      "CreateDate": "2026-07-16T03:15:48.5254126+05:00",
      "UpdatePerson_ID": "1a8f22ad-db40-48a9-95e4-2242920c1bae",
      "UpdateDate": "2026-07-16T03:15:48.5254126+05:00",
      "StockIncoming_ID": "c2f19f56-dd6f-4810-9930-b81a11c1d27f",
      "Stock": {
        "ID": "0eeb2fe6-ebcf-4354-85a5-359fc2c56638",
        "Code": 2,
        "Name": "sample string 3",
        "CreateDate": "2026-07-16T03:15:48.5254126+05:00"
      }
    }
  ],
  "documents": [
    {
      "id": "41a0b7f7-bd1c-4487-aed4-e3ba90380c60",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-07-16T03:15:48.5254126+05:00"
    },
    {
      "id": "41a0b7f7-bd1c-4487-aed4-e3ba90380c60",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-07-16T03:15:48.5254126+05:00"
    }
  ],
  "documentsForService": [
    {
      "id": "41a0b7f7-bd1c-4487-aed4-e3ba90380c60",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-07-16T03:15:48.5254126+05:00"
    },
    {
      "id": "41a0b7f7-bd1c-4487-aed4-e3ba90380c60",
      "documentType": 1,
      "fileName": "sample string 1",
      "fileType": "sample string 2",
      "fileContent": "QEA=",
      "createDate": "2026-07-16T03:15:48.5254126+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-07-16T03:15:48.5254126+05:00</CreateDate>
  <Description>sample string 4</Description>
  <ExpireDate>2026-07-16T03:15:48.5254126+05:00</ExpireDate>
  <ID>e9cfb94a-c3c1-49bc-9624-70a9f7fae2f9</ID>
  <InstallationDate>2026-07-16T03:15:48.5254126+05:00</InstallationDate>
  <SendForExpens>
    <SendForExpensM>
      <CreateDate>2026-07-16T03:15:48.5254126+05:00</CreateDate>
      <Department_ID>3</Department_ID>
      <ID>f432cf28-6089-4188-9fcf-50201f7e324b</ID>
      <InventoryNumber>7</InventoryNumber>
      <Price>8</Price>
      <Quantity>6</Quantity>
      <Stock>
        <Code>2</Code>
        <CreateDate>2026-07-16T03:15:48.5254126+05:00</CreateDate>
        <ID>0eeb2fe6-ebcf-4354-85a5-359fc2c56638</ID>
        <Name>sample string 3</Name>
      </Stock>
      <StockIncoming_ID>c2f19f56-dd6f-4810-9930-b81a11c1d27f</StockIncoming_ID>
      <Stock_ID>bb231326-88ff-46e1-a422-6fc42c313517</Stock_ID>
      <Sum>9</Sum>
      <UnitOfMeasurement>5</UnitOfMeasurement>
      <UpdateDate>2026-07-16T03:15:48.5254126+05:00</UpdateDate>
      <UpdatePerson_ID>1a8f22ad-db40-48a9-95e4-2242920c1bae</UpdatePerson_ID>
      <VehicleService_ID>8eb9e662-2075-4f3c-868d-3619a3a52609</VehicleService_ID>
      <dtE>2026-07-16T03:15:48.5254126+05:00</dtE>
      <dtS>2026-07-16T03:15:48.5254126+05:00</dtS>
    </SendForExpensM>
    <SendForExpensM>
      <CreateDate>2026-07-16T03:15:48.5254126+05:00</CreateDate>
      <Department_ID>3</Department_ID>
      <ID>f432cf28-6089-4188-9fcf-50201f7e324b</ID>
      <InventoryNumber>7</InventoryNumber>
      <Price>8</Price>
      <Quantity>6</Quantity>
      <Stock>
        <Code>2</Code>
        <CreateDate>2026-07-16T03:15:48.5254126+05:00</CreateDate>
        <ID>0eeb2fe6-ebcf-4354-85a5-359fc2c56638</ID>
        <Name>sample string 3</Name>
      </Stock>
      <StockIncoming_ID>c2f19f56-dd6f-4810-9930-b81a11c1d27f</StockIncoming_ID>
      <Stock_ID>bb231326-88ff-46e1-a422-6fc42c313517</Stock_ID>
      <Sum>9</Sum>
      <UnitOfMeasurement>5</UnitOfMeasurement>
      <UpdateDate>2026-07-16T03:15:48.5254126+05:00</UpdateDate>
      <UpdatePerson_ID>1a8f22ad-db40-48a9-95e4-2242920c1bae</UpdatePerson_ID>
      <VehicleService_ID>8eb9e662-2075-4f3c-868d-3619a3a52609</VehicleService_ID>
      <dtE>2026-07-16T03:15:48.5254126+05:00</dtE>
      <dtS>2026-07-16T03:15:48.5254126+05:00</dtS>
    </SendForExpensM>
  </SendForExpens>
  <ServiceType_ID>3</ServiceType_ID>
  <Status>true</Status>
  <UpdatePerson_ID>cf4b388f-b52a-4004-bce0-4796280b5741</UpdatePerson_ID>
  <Vehicle_ID>6cb99991-8135-47b2-8cf6-7f083935dfb5</Vehicle_ID>
  <documents>
    <DocumentM>
      <createDate>2026-07-16T03:15:48.5254126+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>41a0b7f7-bd1c-4487-aed4-e3ba90380c60</id>
    </DocumentM>
    <DocumentM>
      <createDate>2026-07-16T03:15:48.5254126+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>41a0b7f7-bd1c-4487-aed4-e3ba90380c60</id>
    </DocumentM>
  </documents>
  <documentsForService>
    <DocumentM>
      <createDate>2026-07-16T03:15:48.5254126+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>41a0b7f7-bd1c-4487-aed4-e3ba90380c60</id>
    </DocumentM>
    <DocumentM>
      <createDate>2026-07-16T03:15:48.5254126+05:00</createDate>
      <documentType>1</documentType>
      <fileContent>QEA=</fileContent>
      <fileName>sample string 1</fileName>
      <fileType>sample string 2</fileType>
      <id>41a0b7f7-bd1c-4487-aed4-e3ba90380c60</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>