POST AssetDriver

Insert a new AssetDriver

Request Information

URI Parameters

None.

Body Parameters

AssetDriver body

AssetDriverRestItem
NameDescriptionTypeAdditional information
AssetDriverId

Primary Key.

integer

None.

FkAssetId

Foreign Key for Asset.

integer

None.

FkDriverId

Foreign Key for Driver.

integer

None.

DateStart

Day of assignment.

date

None.

DateEnd

Day of assignment.

date

None.

Source

Type of assignment.

AssetDriverSource

None.

Request Formats

application/json, text/json

Sample:
{
  "AssetDriverId": 1,
  "FkAssetId": 2,
  "FkDriverId": 3,
  "DateStart": "2024-04-29T21:20:03.0767895+02:00",
  "DateEnd": "2024-04-29T21:20:03.0767895+02:00",
  "Source": 0
}

application/xml, text/xml

Sample:
<AssetDriverRestItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models">
  <AssetDriverId>1</AssetDriverId>
  <DateEnd>2024-04-29T21:20:03.0767895+02:00</DateEnd>
  <DateStart>2024-04-29T21:20:03.0767895+02:00</DateStart>
  <FkAssetId>2</FkAssetId>
  <FkDriverId>3</FkDriverId>
  <Source>Unknown</Source>
</AssetDriverRestItem>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AssetDriverRestItem'.

Response Information

Resource Description

MaintenanceOccurrenceRestResult
NameDescriptionTypeAdditional information
RestItems

Collection of MaintenanceOccurrenceRestItem

None.

Response Formats

application/json, text/json

Sample:
{
  "RestItems": [
    {
      "Id": 1,
      "Cost": "sample string 2",
      "Description": "sample string 3",
      "FkMaintenanceTypeId": 4,
      "Discount": 1.0,
      "FkAssetId": 5,
      "LocalPurchaseOrderNumber": "sample string 6",
      "MaterialReceiptInspectionVoucherNumber": "sample string 7",
      "PartNumber": "sample string 8",
      "Reference": "sample string 9",
      "SupplierName": "sample string 10",
      "Remarks": "sample string 11",
      "OccurenceDate": "2024-04-29T21:20:03.0767895+02:00",
      "OccurenceEndDate": "2024-04-29T21:20:03.0767895+02:00",
      "Quantity": 1,
      "UnitPrice": 1.0
    },
    {
      "Id": 1,
      "Cost": "sample string 2",
      "Description": "sample string 3",
      "FkMaintenanceTypeId": 4,
      "Discount": 1.0,
      "FkAssetId": 5,
      "LocalPurchaseOrderNumber": "sample string 6",
      "MaterialReceiptInspectionVoucherNumber": "sample string 7",
      "PartNumber": "sample string 8",
      "Reference": "sample string 9",
      "SupplierName": "sample string 10",
      "Remarks": "sample string 11",
      "OccurenceDate": "2024-04-29T21:20:03.0767895+02:00",
      "OccurenceEndDate": "2024-04-29T21:20:03.0767895+02:00",
      "Quantity": 1,
      "UnitPrice": 1.0
    }
  ]
}

application/xml, text/xml

Sample:
<MaintenanceOccurrenceRestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models">
  <RestItems>
    <MaintenanceOccurrenceRestItem>
      <Cost>sample string 2</Cost>
      <Description>sample string 3</Description>
      <Discount>1</Discount>
      <FkAssetId>5</FkAssetId>
      <FkMaintenanceTypeId>4</FkMaintenanceTypeId>
      <Id>1</Id>
      <LocalPurchaseOrderNumber>sample string 6</LocalPurchaseOrderNumber>
      <MaterialReceiptInspectionVoucherNumber>sample string 7</MaterialReceiptInspectionVoucherNumber>
      <OccurenceDate>2024-04-29T21:20:03.0767895+02:00</OccurenceDate>
      <OccurenceEndDate>2024-04-29T21:20:03.0767895+02:00</OccurenceEndDate>
      <PartNumber>sample string 8</PartNumber>
      <Quantity>1</Quantity>
      <Reference>sample string 9</Reference>
      <Remarks>sample string 11</Remarks>
      <SupplierName>sample string 10</SupplierName>
      <UnitPrice>1</UnitPrice>
    </MaintenanceOccurrenceRestItem>
    <MaintenanceOccurrenceRestItem>
      <Cost>sample string 2</Cost>
      <Description>sample string 3</Description>
      <Discount>1</Discount>
      <FkAssetId>5</FkAssetId>
      <FkMaintenanceTypeId>4</FkMaintenanceTypeId>
      <Id>1</Id>
      <LocalPurchaseOrderNumber>sample string 6</LocalPurchaseOrderNumber>
      <MaterialReceiptInspectionVoucherNumber>sample string 7</MaterialReceiptInspectionVoucherNumber>
      <OccurenceDate>2024-04-29T21:20:03.0767895+02:00</OccurenceDate>
      <OccurenceEndDate>2024-04-29T21:20:03.0767895+02:00</OccurenceEndDate>
      <PartNumber>sample string 8</PartNumber>
      <Quantity>1</Quantity>
      <Reference>sample string 9</Reference>
      <Remarks>sample string 11</Remarks>
      <SupplierName>sample string 10</SupplierName>
      <UnitPrice>1</UnitPrice>
    </MaintenanceOccurrenceRestItem>
  </RestItems>
</MaintenanceOccurrenceRestResult>