PUT AssetDriver/{id}
Update an AssetDriver based on it's id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Internal Id to the AssetDriver |
integer |
Required |
Body Parameters
AssetDriver body
AssetDriverRestItemName | Description | Type | Additional 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": "2025-01-05T02:22:49.3105373+01:00", "DateEnd": "2025-01-05T02:22:49.3105373+01: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>2025-01-05T02:22:49.3105373+01:00</DateEnd> <DateStart>2025-01-05T02:22:49.3105373+01:00</DateStart> <FkAssetId>2</FkAssetId> <FkDriverId>3</FkDriverId> <Source>Unknown</Source> </AssetDriverRestItem>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
MaintenanceOccurrenceRestResultName | Description | Type | Additional 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": "2025-01-05T02:22:49.3105373+01:00", "OccurenceEndDate": "2025-01-05T02:22:49.3105373+01: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": "2025-01-05T02:22:49.3105373+01:00", "OccurenceEndDate": "2025-01-05T02:22:49.3105373+01: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>2025-01-05T02:22:49.3105373+01:00</OccurenceDate> <OccurenceEndDate>2025-01-05T02:22:49.3105373+01: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>2025-01-05T02:22:49.3105373+01:00</OccurenceDate> <OccurenceEndDate>2025-01-05T02:22:49.3105373+01: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>