POST api/SpreaderTracker/LoadSpreaderData
Request Information
URI Parameters
None.
Body Parameters
SpreaderImportData| Name | Description | Type | Additional information |
|---|---|---|---|
| spreaders | Collection of SpreaderImport |
None. |
Request Formats
application/json, text/json
Sample:
{
"spreaders": [
{
"assetNumber": "sample string 1",
"serialNumber": "sample string 2",
"make": "sample string 3",
"model": "sample string 4",
"year": "sample string 5",
"status": "sample string 6",
"location": "sample string 7",
"region": "sample string 8",
"statesTraveled": "sample string 9",
"salesRepAssignment": "sample string 10",
"harrellsAssetAssignment": "sample string 11",
"purchaseDate": "sample string 12",
"purchasePrice": 1.0,
"currentValue": 1.0,
"expectedLife": 1,
"replacementCost": 1.0,
"driveType": "sample string 13",
"mountType": "sample string 14",
"notes": "sample string 15",
"maintenanceLogs": [
{
"date": "sample string 1",
"type": "sample string 2",
"workOrder": "sample string 3",
"repairCompany": "sample string 4",
"partsCost": 1.0,
"laborCost": 1.0,
"repairCost": 1.0,
"partsReplaced": "sample string 5",
"description": "sample string 6",
"attachments": [
{
"fileId": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"size": 1
},
{
"fileId": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"size": 1
}
]
},
{
"date": "sample string 1",
"type": "sample string 2",
"workOrder": "sample string 3",
"repairCompany": "sample string 4",
"partsCost": 1.0,
"laborCost": 1.0,
"repairCost": 1.0,
"partsReplaced": "sample string 5",
"description": "sample string 6",
"attachments": [
{
"fileId": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"size": 1
},
{
"fileId": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"size": 1
}
]
}
]
},
{
"assetNumber": "sample string 1",
"serialNumber": "sample string 2",
"make": "sample string 3",
"model": "sample string 4",
"year": "sample string 5",
"status": "sample string 6",
"location": "sample string 7",
"region": "sample string 8",
"statesTraveled": "sample string 9",
"salesRepAssignment": "sample string 10",
"harrellsAssetAssignment": "sample string 11",
"purchaseDate": "sample string 12",
"purchasePrice": 1.0,
"currentValue": 1.0,
"expectedLife": 1,
"replacementCost": 1.0,
"driveType": "sample string 13",
"mountType": "sample string 14",
"notes": "sample string 15",
"maintenanceLogs": [
{
"date": "sample string 1",
"type": "sample string 2",
"workOrder": "sample string 3",
"repairCompany": "sample string 4",
"partsCost": 1.0,
"laborCost": 1.0,
"repairCost": 1.0,
"partsReplaced": "sample string 5",
"description": "sample string 6",
"attachments": [
{
"fileId": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"size": 1
},
{
"fileId": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"size": 1
}
]
},
{
"date": "sample string 1",
"type": "sample string 2",
"workOrder": "sample string 3",
"repairCompany": "sample string 4",
"partsCost": 1.0,
"laborCost": 1.0,
"repairCost": 1.0,
"partsReplaced": "sample string 5",
"description": "sample string 6",
"attachments": [
{
"fileId": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"size": 1
},
{
"fileId": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"size": 1
}
]
}
]
}
]
}
application/xml, text/xml
Sample:
<SpreaderImportData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoHarrellsAPI.Models">
<Spreaders>
<SpreaderImport>
<AssetNumber>sample string 1</AssetNumber>
<CurrentValue>1</CurrentValue>
<DriveType>sample string 13</DriveType>
<ExpectedLife>1</ExpectedLife>
<HarrellsAssetAssignment>sample string 11</HarrellsAssetAssignment>
<Location>sample string 7</Location>
<MaintenanceLogs>
<SpreaderMaintenanceImport>
<Attachments>
<SpreaderAttachmentImport>
<FileId>sample string 1</FileId>
<Name>sample string 2</Name>
<Size>1</Size>
<Type>sample string 3</Type>
</SpreaderAttachmentImport>
<SpreaderAttachmentImport>
<FileId>sample string 1</FileId>
<Name>sample string 2</Name>
<Size>1</Size>
<Type>sample string 3</Type>
</SpreaderAttachmentImport>
</Attachments>
<Date>sample string 1</Date>
<Description>sample string 6</Description>
<LaborCost>1</LaborCost>
<PartsCost>1</PartsCost>
<PartsReplaced>sample string 5</PartsReplaced>
<RepairCompany>sample string 4</RepairCompany>
<RepairCost>1</RepairCost>
<Type>sample string 2</Type>
<WorkOrder>sample string 3</WorkOrder>
</SpreaderMaintenanceImport>
<SpreaderMaintenanceImport>
<Attachments>
<SpreaderAttachmentImport>
<FileId>sample string 1</FileId>
<Name>sample string 2</Name>
<Size>1</Size>
<Type>sample string 3</Type>
</SpreaderAttachmentImport>
<SpreaderAttachmentImport>
<FileId>sample string 1</FileId>
<Name>sample string 2</Name>
<Size>1</Size>
<Type>sample string 3</Type>
</SpreaderAttachmentImport>
</Attachments>
<Date>sample string 1</Date>
<Description>sample string 6</Description>
<LaborCost>1</LaborCost>
<PartsCost>1</PartsCost>
<PartsReplaced>sample string 5</PartsReplaced>
<RepairCompany>sample string 4</RepairCompany>
<RepairCost>1</RepairCost>
<Type>sample string 2</Type>
<WorkOrder>sample string 3</WorkOrder>
</SpreaderMaintenanceImport>
</MaintenanceLogs>
<Make>sample string 3</Make>
<Model>sample string 4</Model>
<MountType>sample string 14</MountType>
<Notes>sample string 15</Notes>
<PurchaseDate>sample string 12</PurchaseDate>
<PurchasePrice>1</PurchasePrice>
<Region>sample string 8</Region>
<ReplacementCost>1</ReplacementCost>
<SalesRepAssignment>sample string 10</SalesRepAssignment>
<SerialNumber>sample string 2</SerialNumber>
<StatesTraveled>sample string 9</StatesTraveled>
<Status>sample string 6</Status>
<Year>sample string 5</Year>
</SpreaderImport>
<SpreaderImport>
<AssetNumber>sample string 1</AssetNumber>
<CurrentValue>1</CurrentValue>
<DriveType>sample string 13</DriveType>
<ExpectedLife>1</ExpectedLife>
<HarrellsAssetAssignment>sample string 11</HarrellsAssetAssignment>
<Location>sample string 7</Location>
<MaintenanceLogs>
<SpreaderMaintenanceImport>
<Attachments>
<SpreaderAttachmentImport>
<FileId>sample string 1</FileId>
<Name>sample string 2</Name>
<Size>1</Size>
<Type>sample string 3</Type>
</SpreaderAttachmentImport>
<SpreaderAttachmentImport>
<FileId>sample string 1</FileId>
<Name>sample string 2</Name>
<Size>1</Size>
<Type>sample string 3</Type>
</SpreaderAttachmentImport>
</Attachments>
<Date>sample string 1</Date>
<Description>sample string 6</Description>
<LaborCost>1</LaborCost>
<PartsCost>1</PartsCost>
<PartsReplaced>sample string 5</PartsReplaced>
<RepairCompany>sample string 4</RepairCompany>
<RepairCost>1</RepairCost>
<Type>sample string 2</Type>
<WorkOrder>sample string 3</WorkOrder>
</SpreaderMaintenanceImport>
<SpreaderMaintenanceImport>
<Attachments>
<SpreaderAttachmentImport>
<FileId>sample string 1</FileId>
<Name>sample string 2</Name>
<Size>1</Size>
<Type>sample string 3</Type>
</SpreaderAttachmentImport>
<SpreaderAttachmentImport>
<FileId>sample string 1</FileId>
<Name>sample string 2</Name>
<Size>1</Size>
<Type>sample string 3</Type>
</SpreaderAttachmentImport>
</Attachments>
<Date>sample string 1</Date>
<Description>sample string 6</Description>
<LaborCost>1</LaborCost>
<PartsCost>1</PartsCost>
<PartsReplaced>sample string 5</PartsReplaced>
<RepairCompany>sample string 4</RepairCompany>
<RepairCost>1</RepairCost>
<Type>sample string 2</Type>
<WorkOrder>sample string 3</WorkOrder>
</SpreaderMaintenanceImport>
</MaintenanceLogs>
<Make>sample string 3</Make>
<Model>sample string 4</Model>
<MountType>sample string 14</MountType>
<Notes>sample string 15</Notes>
<PurchaseDate>sample string 12</PurchaseDate>
<PurchasePrice>1</PurchasePrice>
<Region>sample string 8</Region>
<ReplacementCost>1</ReplacementCost>
<SalesRepAssignment>sample string 10</SalesRepAssignment>
<SerialNumber>sample string 2</SerialNumber>
<StatesTraveled>sample string 9</StatesTraveled>
<Status>sample string 6</Status>
<Year>sample string 5</Year>
</SpreaderImport>
</Spreaders>
</SpreaderImportData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SpreaderLoadResult| Name | Description | Type | Additional information |
|---|---|---|---|
| SpreadersLoaded | integer |
None. |
|
| MaintenanceLogsLoaded | integer |
None. |
|
| AttachmentsLoaded | integer |
None. |
|
| SpreadersSkipped | integer |
None. |
|
| Warnings | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{
"SpreadersLoaded": 1,
"MaintenanceLogsLoaded": 2,
"AttachmentsLoaded": 3,
"SpreadersSkipped": 4,
"Warnings": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<SpreaderLoadResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoHarrellsAPI.Models">
<AttachmentsLoaded>3</AttachmentsLoaded>
<MaintenanceLogsLoaded>2</MaintenanceLogsLoaded>
<SpreadersLoaded>1</SpreadersLoaded>
<SpreadersSkipped>4</SpreadersSkipped>
<Warnings xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Warnings>
</SpreaderLoadResult>