PATCH apioauth/tooltrackv2/assets/{assetId}
Patch an asset
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
assetId |
The id of the asset to be updated |
unsigned integer |
Required |
Body Parameters
The patch request
PatchAssetRequestName | Description | Type | Additional information |
---|---|---|---|
name |
The name of the asset |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "name": "sample string 1" }
application/xml, text/xml
Sample:
<PatchAssetRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Name>sample string 1</Name> </PatchAssetRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The updated asset after changes
AssetResponseName | Description | Type | Additional information |
---|---|---|---|
id |
The asset id |
unsigned integer |
None. |
name |
The name of the asset |
string |
None. |
items |
A collection of items associated to the asset |
Collection of ItemObject |
None. |
Response Formats
application/json, text/json
Sample:
{ "id": 1, "name": "sample string 2", "items": [ { "id": 1, "asset_id": 1, "reference": "sample string 2", "item_type": "sample string 3", "description": "sample string 4", "tag_1": "sample string 5", "tag_2": "sample string 6", "tag_3": "sample string 7", "tag_4": "sample string 8", "tag_5": "sample string 9", "consumable": true, "off_hire_date": "2025-04-27T15:35:27.5702543+00:00", "depot_id": 10.0, "store_location": "sample string 11", "minimum_stock": 1, "maximum_stock": 1, "quantity": 1, "calibration_date": "2025-04-27T15:35:27.5702543+00:00", "expiry_date": "2025-04-27T15:35:27.5702543+00:00", "service_date": "2025-04-27T15:35:27.5702543+00:00", "value": 1.0, "condition": 0, "assigned_status": 0, "hire_status": 0, "calibration_status": 0, "pat_status": 0, "photo_url": "sample string 12", "assigned_person_name": "sample string 13", "pat_date": "2025-04-27T15:35:27.5858962+00:00" }, { "id": 1, "asset_id": 1, "reference": "sample string 2", "item_type": "sample string 3", "description": "sample string 4", "tag_1": "sample string 5", "tag_2": "sample string 6", "tag_3": "sample string 7", "tag_4": "sample string 8", "tag_5": "sample string 9", "consumable": true, "off_hire_date": "2025-04-27T15:35:27.5702543+00:00", "depot_id": 10.0, "store_location": "sample string 11", "minimum_stock": 1, "maximum_stock": 1, "quantity": 1, "calibration_date": "2025-04-27T15:35:27.5702543+00:00", "expiry_date": "2025-04-27T15:35:27.5702543+00:00", "service_date": "2025-04-27T15:35:27.5702543+00:00", "value": 1.0, "condition": 0, "assigned_status": 0, "hire_status": 0, "calibration_status": 0, "pat_status": 0, "photo_url": "sample string 12", "assigned_person_name": "sample string 13", "pat_date": "2025-04-27T15:35:27.5858962+00:00" } ] }
application/xml, text/xml
Sample:
<AssetResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Id>1</Id> <Name>sample string 2</Name> <Items> <ItemObject> <Id>1</Id> <AssetId>1</AssetId> <Reference>sample string 2</Reference> <ItemType>sample string 3</ItemType> <Description>sample string 4</Description> <Tag1>sample string 5</Tag1> <Tag2>sample string 6</Tag2> <Tag3>sample string 7</Tag3> <Tag4>sample string 8</Tag4> <Tag5>sample string 9</Tag5> <Consumable>true</Consumable> <OffHireDate>2025-04-27T15:35:27.5702543+00:00</OffHireDate> <DepotId>10</DepotId> <StoreLocation>sample string 11</StoreLocation> <MinimumStock>1</MinimumStock> <MaximumStock>1</MaximumStock> <Quantity>1</Quantity> <CalibrationDueDate>2025-04-27T15:35:27.5702543+00:00</CalibrationDueDate> <ExpiryDate>2025-04-27T15:35:27.5702543+00:00</ExpiryDate> <ServiceDate>2025-04-27T15:35:27.5702543+00:00</ServiceDate> <Value>1</Value> <Condition>Poor</Condition> <AssignedStatus>Unassigned</AssignedStatus> <HireStatus>NotInUse</HireStatus> <CalibrationStatus>NotInUse</CalibrationStatus> <PatStatus>NotInUse</PatStatus> <PhotoUrl>sample string 12</PhotoUrl> <AssignedPersonName>sample string 13</AssignedPersonName> <PatDate>2025-04-27T15:35:27.5858962+00:00</PatDate> </ItemObject> <ItemObject> <Id>1</Id> <AssetId>1</AssetId> <Reference>sample string 2</Reference> <ItemType>sample string 3</ItemType> <Description>sample string 4</Description> <Tag1>sample string 5</Tag1> <Tag2>sample string 6</Tag2> <Tag3>sample string 7</Tag3> <Tag4>sample string 8</Tag4> <Tag5>sample string 9</Tag5> <Consumable>true</Consumable> <OffHireDate>2025-04-27T15:35:27.5702543+00:00</OffHireDate> <DepotId>10</DepotId> <StoreLocation>sample string 11</StoreLocation> <MinimumStock>1</MinimumStock> <MaximumStock>1</MaximumStock> <Quantity>1</Quantity> <CalibrationDueDate>2025-04-27T15:35:27.5702543+00:00</CalibrationDueDate> <ExpiryDate>2025-04-27T15:35:27.5702543+00:00</ExpiryDate> <ServiceDate>2025-04-27T15:35:27.5702543+00:00</ServiceDate> <Value>1</Value> <Condition>Poor</Condition> <AssignedStatus>Unassigned</AssignedStatus> <HireStatus>NotInUse</HireStatus> <CalibrationStatus>NotInUse</CalibrationStatus> <PatStatus>NotInUse</PatStatus> <PhotoUrl>sample string 12</PhotoUrl> <AssignedPersonName>sample string 13</AssignedPersonName> <PatDate>2025-04-27T15:35:27.5858962+00:00</PatDate> </ItemObject> </Items> </AssetResponse>