Upsert Assets
post
/rest/v19/assets/bulk
This operation supports insert/updated of multiple asset records in a single call. If the asset instance already exists, it is updated with the newly provided information. If the asset instance doesn???t exist, a new entry is created with the provided information.
Request
Supported Media Types
- application/json
Root Schema : assetBulkUpsertInputBean
Type:
Show Source
object
-
items:
array List of Assets
Title:
List of Assets
List of Assets -
triggerStatusRollup:
boolean()
Title:
Trigger Status Rollup
Trigger status rollup
Nested Schema : assetBean
Type:
Show Source
object
-
assetDescription:
string()
Title:
Asset Description
Description of the asset -
assetInstanceTracked:
boolean()
Title:
Asset Instance Tracked
Whether the asset instance is tracked -
assetKey:
string()
Title:
Asset Key
Unique key identifier for the asset -
assetProductType:
string()
Title:
Asset Product Type
Type of the asset product -
attributes:
string()
Title:
Attributes Object
JSON string containing asset attributes -
billingAccount:
string()
Title:
Billing Account Reference
Reference to the billing account -
billingProfile:
string()
Title:
Billing Profile Reference
Reference to the billing profile -
billToAccountId:
string()
Title:
Bill To Account Id
The id of the billing account -
billToAccountName:
string()
Title:
Bill To Account Name
Name of the bill-to account -
billToAddress:
string()
Title:
Bill To Address
Address of the organization where the asset was billed -
billToFirstName:
string()
Title:
Bill To Contact First Name
First name of the contact person of the organization to which the asset was billed -
billToLastName:
string()
Title:
Bill To Contact Last Name
Last name of the contact person of the organization to which the asset was billed -
billToParty:
string()
Title:
Bill To Party Reference
Reference to the bill-to party -
billToSiteUse:
string()
Title:
Bill To Site Use Reference
Reference to the bill-to site use -
bomItemId:
string()
Title:
BOM Item ID
Bill of Materials item identifier -
bomModelPath:
string()
Title:
BOM Model Path
Path to the Bill of Materials model -
businessUnitId:
string()
Title:
Business Unit Id
Customer business unit identifier -
cancelledQuantity:
number()
Title:
Cancelled Quantity
Quantity that has been cancelled -
charges:
Asset Charges
Title:
Asset Charges
Read Only:true
Collection of asset charges -
closedDate:
string()
Title:
Closed Date
Date when the asset was closed -
competitiveAsset:
string()
Title:
Competitive Asset
Whether the asset is competitive -
configAttrInfo:
string()
Title:
Config Attribute Info
Read Only:true
Configuration attribute information -
contractedPeriods:
integer()
Title:
Contracted Periods
Number of contracted periods -
contractReference:
string()
Title:
Contract Reference
Reference to the associated contract -
coveredFulfillmentLineId:
string()
Title:
Covered Fulfillment Line Id
Fulfillment Line Id for the covered item -
coveredItemAssetKey:
string()
Title:
Covered Item Asset Key
Asset key of the covered item -
coveredItemLineNumber:
string()
Title:
Covered Item Line Number
Line number of the covered item -
coveredItemOrderNumber:
string()
Title:
Covered Item Order Number
Order number of the covered item -
coveredItemUom:
string()
Title:
Covered Item UOM
Unit of measure for the covered item -
currency:
string()
Title:
Currency Code
Currency code for the asset -
customer:
string()
Title:
Customer Reference
Reference to the customer -
dateAdded:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date Added
Read Only:true
Creation Date of the Asset. -
dateModified:
string(yyyy-MM-dd'T'HH:mm:ss.SSS'Z')
Title:
Date Modified
Read Only:true
Last Modified date of the Asset. -
discountAmount:
Discount Amount
Title:
Discount Amount
Amount of discount applied -
discountPercent:
number()
Title:
Discount Percent
Percentage of discount applied -
displayKey:
string()
Title:
Display Key
Display key for the asset -
endDate:
string()
Title:
End Date
End date of the asset -
extAssetVersionNumber:
string()
Title:
External Asset Version Number
Version number of the external asset -
fixedRecurringAmt:
Fixed Recurring Amount
Title:
Fixed Recurring Amount
Fixed recurring amount for the asset -
fixedRecurringPeriod:
string()
Title:
Fixed Recurring Period Code
Code for the fixed recurring period -
fulfilledQuantity:
number()
Title:
Fulfilled Quantity
Quantity that has been fulfilled -
fulfillmentSourceSystem:
string()
Title:
Fulfillment Source System
Source system for fulfillment -
goodsQuoteLineId:
string()
Title:
Goods Quote Line ID
ID of the goods quote line -
hasPendingOrder:
boolean()
Title:
Has Pending Order
Indicates whether the asset has a pending order -
id:
integer()
Title:
ID
Unique identifier for the asset -
installDate:
string()
Title:
Install Date
Installation date of the asset -
instances:
Asset Instances
Title:
Asset Instances
Read Only:true
Collection of asset instances -
inventoryItemId:
string()
Title:
Inventory Item ID
ID of the inventory item -
inventoryOrgId:
string()
Title:
Inventory Org ID
ID of the inventory organization -
links:
array Links
Title:
Links
Read Only:true
The link relations associated with the resource instance. -
oneTimeNetAmt:
One Time Net Amount
Title:
One Time Net Amount
One-time net amount for the asset -
orderLineId:
string()
Title:
Order Line ID
ID of the order line -
orderNumber:
string()
Title:
Order Number
Number of the order -
originalAssetKey:
string()
Title:
Original Asset Key
Original key of the asset -
originalRootAssetKey:
string()
Title:
Original Root Asset Key
Original key of the root asset -
origTransactionId:
string()
Title:
Original Transaction ID
ID of the original transaction -
parentAsset:
Parent Asset
Title:
Parent Asset
Read Only:true
Parent asset object -
parentAssetId:
integer()
Title:
Parent Asset ID
ID of the parent asset -
parentAssetKey:
string()
Title:
Parent Asset Key
Key of the parent asset -
partDisplayNumber:
string()
Title:
Part Display Number
Part display number of the asset -
partNumber:
string()
Title:
Part Number
Part number of the asset -
paymentTerm:
string()
Title:
Payment Term Code
Code for the payment term -
previousAssetKey:
string()
Title:
Previous Asset Key
Key of the previous asset -
previousAssetRelationCode:
string()
Title:
Previous Asset Relation Code
Code for the previous asset relation -
priceQuantity:
number()
Title:
Price Quantity
Quantity used for pricing -
purchaseDate:
string()
Title:
Purchase Date
Date of purchase -
quantity:
number()
Title:
Quantity
Quantity of the asset -
ratePlanNumber:
string()
Title:
Rate Plan Number
Number of the rate plan -
registeredDate:
string()
Title:
Registered Date
Date of registration -
resumeDate:
string()
Title:
Resume Date
Date of resumption -
rootAsset:
Root Asset
Title:
Root Asset
Read Only:true
Root asset object -
rootAssetId:
integer()
Title:
Root Asset ID
ID of the root asset -
rootAssetKey:
string()
Title:
Root Asset Key
Key of the root asset -
salesProductType:
string()
Title:
Sales Product Type
Type of sales product -
serviceAccount:
string()
Title:
Service Account Reference
Reference to the service account -
serviceAddress:
string()
Title:
Service Address Reference
Reference to the service address -
shipToParty:
string()
Title:
Ship To Party Reference
Reference to the ship-to party -
shipToPartyName:
string()
Title:
Ship To Party Name
Name of the ship-to party -
shipToPartySite:
string()
Title:
Ship To Party Site Reference
Reference to the ship-to party site -
soldToCustAcct:
string()
Title:
Sold To Customer Account Reference
Reference to the sold-to customer account -
soldToParty:
string()
Title:
Sold To Party Reference
Reference to the sold-to party -
soldToPartyName:
string()
Title:
Sold To Party Name
Name of the sold-to party -
soldToPartySite:
string()
Title:
Sold To Party Site Reference
Reference to the sold-to party site -
sourceSystem:
string()
Title:
Source System
Source system of the asset -
startDate:
string()
Title:
Start Date
Start date of the asset -
status:
Status
Title:
Status
Read Only:true
Status of the asset -
statusCode:
string()
Title:
Status Code
Code representing the status -
subscriptionFulfillmentLineId:
string()
Title:
Subscription Fulfillment Line ID
ID of the subscription fulfillment line -
subscriptionNumber:
string()
Title:
Subscription Number
Number of the subscription -
subscriptionProductPuid:
string()
Title:
Subscription Product PUID
PUID of the subscription product -
suspendDate:
string()
Title:
Suspend Date
Date when the asset was suspended -
totalAssetAmount:
Total Asset Amount
Title:
Total Asset Amount
Total amount for the asset -
totalContractValue:
Total Contract Value
Title:
Total Contract Value
The total contract value of the asset including all one-time and recurring charges -
uomCode:
string()
Title:
UOM Code
Unit of measure code -
usageNetAmt:
Usage Net Amount
Title:
Usage Net Amount
Net amount for usage -
usageUomCode:
string()
Title:
Usage UOM Code
Unit of measure code for usage -
warrantyEnd:
string()
Title:
Warranty End
End date of warranty -
warrantyStart:
string()
Title:
Warranty Start
Start date of warranty
Nested Schema : Asset Charges
Title:
Asset Charges
Read Only:
true
Collection of asset charges
Match All
Collection of asset charges
Show Source
Nested Schema : Discount Amount
Title:
Discount Amount
Amount of discount applied
Match All
Amount of discount applied
Show Source
Nested Schema : Fixed Recurring Amount
Title:
Fixed Recurring Amount
Fixed recurring amount for the asset
Match All
Fixed recurring amount for the asset
Show Source
Nested Schema : Asset Instances
Title:
Asset Instances
Read Only:
true
Collection of asset instances
Match All
Collection of asset instances
Show Source
Nested Schema : Links
Type:
array
Title:
Links
Read Only:
true
The link relations associated with the resource instance.
Show Source
Nested Schema : One Time Net Amount
Title:
One Time Net Amount
One-time net amount for the asset
Match All
One-time net amount for the asset
Show Source
Nested Schema : Parent Asset
Title:
Parent Asset
Read Only:
true
Parent asset object
Match All
Parent asset object
Show Source
Nested Schema : Root Asset
Title:
Root Asset
Read Only:
true
Root asset object
Match All
Root asset object
Show Source
Nested Schema : Status
Title:
Status
Read Only:
true
Status of the asset
Match All
Status of the asset
Show Source
Nested Schema : Total Asset Amount
Title:
Total Asset Amount
Total amount for the asset
Match All
Total amount for the asset
Show Source
Nested Schema : Total Contract Value
Title:
Total Contract Value
The total contract value of the asset including all one-time and recurring charges
Match All
The total contract value of the asset including all one-time and recurring charges
Show Source
Nested Schema : Usage Net Amount
Title:
Usage Net Amount
Net amount for usage
Match All
Net amount for usage
Show Source
Nested Schema : ResponseCollectionModel_assetChargeBean
Type:
Show Source
object
-
count:
integer()
Title:
Count
Read Only:true
The number of resource instances returned in the current range. -
hasMore:
boolean()
Title:
HasMore
Read Only:true
Indicates whether more resources are available on the server than the subset returned in the response. If the value is true, then there are more resources to retrieve from the server. The default value is false. -
items:
array items
-
limit:
integer()
Title:
Limit
Read Only:true
The actual paging size used by the server. -
links:
array Links
Title:
Links
Read Only:true
The link relations associated with the resource instance. -
offset:
integer()
Title:
OffSet
Read Only:true
The offset value used in the current page. -
totalResults:
integer()
Title:
Total Results
Read Only:true
Captures the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : Links
Type:
array
Title:
Links
Read Only:
true
The link relations associated with the resource instance.
Show Source
Nested Schema : assetChargeBean
Type:
Show Source
object
-
applyTo:
string()
Title:
Apply To
Indicates what this charge applies to -
assetKey:
string()
Title:
Asset Key
-
chargeDefIntegrationId:
string()
Title:
Charge Definition Integration Id
The charge definition code in the integrated order management system -
chargeName:
string()
Title:
Charge Name
Name of the charge -
chargeSequenceNumber:
integer(int64)
-
chargeTypeCode(required):
string()
Title:
Charge Type Code
-
contractDiscountAmount:
Contract Discount Amount
Title:
Contract Discount Amount
Discount amount based on contract -
contractListAmount:
Contract List Amount
Title:
Contract List Amount
List amount based on contract -
contractNetAmount:
Contract Net Amount
Title:
Contract Net Amount
Net amount based on contract -
customDiscountAmount:
Custom Discount Amount
Title:
Custom Discount Amount
Amount of custom discount -
customDiscountType:
string()
Title:
Custom Discount Type
Type of custom discount applied -
dateAdded:
string()
Title:
Date Added
Read Only:true
Last modified date of Asset Charge Bean. -
dateModified:
string()
Title:
Date Modified
Read Only:true
Creation date of the Asset Charge Bean. -
dynamicPricingType:
string()
Title:
Dynamic Pricing Type
Type of dynamic pricing -
extendedDiscountAmount:
Extended Discount Amount
Title:
Extended Discount Amount
Total extended discount amount -
id:
integer()
Title:
id
Read Only:true
-
links:
array Links
Title:
Links
Read Only:true
The link relations associated with the resource instance. -
listAmount:
List Amount
Title:
List Amount
The list amount for this charge -
netAmount:
Net Amount
Title:
Net Amount
Total net amount -
netPrice:
Net Price
Title:
Net Price
Price after applying discounts -
pricePeriodCode:
string()
Title:
Price Period Code
Code representing the pricing period -
priceTypeCode(required):
string()
Title:
Price Type Code
-
priceUom:
string()
Title:
Price UOM
Unit of measure for the price -
primaryFlag:
boolean()
Title:
Primary Flag
Indicates if this is the primary charge. -
rateCardStructure:
string()
Title:
Rate Card Structure
Structure of the rate card -
unitPrice:
Unit Price
Title:
Unit Price
Price per unit
Nested Schema : Contract Discount Amount
Title:
Contract Discount Amount
Discount amount based on contract
Match All
Discount amount based on contract
Show Source
Nested Schema : Contract List Amount
Title:
Contract List Amount
List amount based on contract
Match All
List amount based on contract
Show Source
Nested Schema : Contract Net Amount
Title:
Contract Net Amount
Net amount based on contract
Match All
Net amount based on contract
Show Source
Nested Schema : Custom Discount Amount
Title:
Custom Discount Amount
Amount of custom discount
Match All
Amount of custom discount
Show Source
Nested Schema : Extended Discount Amount
Title:
Extended Discount Amount
Total extended discount amount
Match All
Total extended discount amount
Show Source
Nested Schema : Links
Type:
array
Title:
Links
Read Only:
true
The link relations associated with the resource instance.
Show Source
Nested Schema : List Amount
Title:
List Amount
The list amount for this charge
Match All
The list amount for this charge
Show Source
Nested Schema : Net Amount
Title:
Net Amount
Total net amount
Match All
Total net amount
Show Source
Nested Schema : Net Price
Title:
Net Price
Price after applying discounts
Match All
Price after applying discounts
Show Source
Nested Schema : amountBean
Type:
Show Source
object
-
amount:
number()
Title:
Amount
Amount -
currencyCode:
string()
Title:
Currency Code
Currency Code
Nested Schema : ResponseCollectionModel_assetInstanceBean
Type:
Show Source
object
-
count:
integer()
Title:
Count
Read Only:true
The number of resource instances returned in the current range. -
hasMore:
boolean()
Title:
HasMore
Read Only:true
Indicates whether more resources are available on the server than the subset returned in the response. If the value is true, then there are more resources to retrieve from the server. The default value is false. -
items:
array items
-
limit:
integer()
Title:
Limit
Read Only:true
The actual paging size used by the server. -
links:
array Links
Title:
Links
Read Only:true
The link relations associated with the resource instance. -
offset:
integer()
Title:
OffSet
Read Only:true
The offset value used in the current page. -
totalResults:
integer()
Title:
Total Results
Read Only:true
Captures the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : Links
Type:
array
Title:
Links
Read Only:
true
The link relations associated with the resource instance.
Show Source
Nested Schema : assetInstanceBean
Type:
Show Source
object
-
assetKey:
string()
Title:
Asset Key
-
dateAdded:
string()
Title:
Date Added
Read Only:true
Last modified date of Asset Instance Bean. -
dateModified:
string()
Title:
Date Modified
Read Only:true
Creation date of the Asset Instance Bean. -
extAssetRef:
string()
Title:
External Asset Ref
-
fulfilmentId:
string()
Title:
Fulfilment Id
-
id:
integer()
Title:
id
Read Only:true
id -
links:
array Links
Title:
Links
Read Only:true
The link relations associated with the resource instance. -
lotNumber:
string()
Title:
Lot Number
-
parExtAssetRef:
string()
Title:
Parent External Asset Ref
-
quantity:
number()
Title:
Quantity
-
rootExtAssetRef:
string()
Title:
Root External Asset Ref
-
serialNumber:
string()
Title:
Serial Number
Nested Schema : Links
Type:
array
Title:
Links
Read Only:
true
The link relations associated with the resource instance.
Show Source
Nested Schema : assetObjBean
Type:
Show Source
object
-
assetKey:
string()
Title:
Object Asset Key
Object Asset Key -
id:
integer()
Title:
Object Id
Object Id
Nested Schema : lookupBean
Type:
Show Source
object
-
displayValue:
string()
Title:
Display Value
DisplayValue -
id:
integer()
Title:
Id
Lookup Id -
lookupCode:
string()
Title:
Lookup Code
Lookup Code
Response
Supported Media Types
- application/json
200 Response
Success
Nested Schema : errorRecord
Type:
Show Source
object
-
errorMessages:
array Error Messages
Title:
Error Messages
Error Messages -
index:
string()
Title:
Index
Index
Nested Schema : successRecord
Type:
Show Source
object
-
id:
string()
Title:
Id
Id -
key:
string()
Title:
Key
Key -
message:
string()
Title:
Message
Message
Examples
The following example shows how to upsert assets by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/assets/bulk
Request Body Sample
{ "items": [{ "assetKey": "abo_c5c7f396-c27f-4c55-c0d6-efef03de1e82", "assetDescription": "SolarPanel1301", "discountAmount": { "amount": 0.0, "currencyCode": "USD" }, "discountPercent": 0.0, "displayKey": "SolarPanel1301", "endDate": "2028-08-23T04:54:21Z", "partNumber": "SolarPanel1301", "quantity": 5.0, "totalAssetAmount": { "amount": 0.0, "currencyCode": "USD" }, "priceQuantity": 10.0, "startDate": "2025-08-24T04:54:21Z", "soldToPartyName": "Computer Service and Rentals", "billToAddress": "301 Summit Hill Drive", "partDisplayNumber": "SolarPanel1301", "totalContractValue": { "amount": 100, "currencyCode": "USD" }, "billToAccountId": "1006", "businessUnitId": "204", "billToAccountName": "Computer Service and Rentals", "shipToPartyName": "Computer Service and Rentals", "contractedPeriods": 1, "salesProductType": "GOODS", "assetInstanceTracked": false, "inventoryItemId": "300100592828797", "inventoryOrgId": "204", "fulfilledQuantity": 0, "cancelledQuantity": 0, "goodsQuoteLineId": "51537897~5", "orderLineId": "100100647971731", "competitiveAsset": "N", "orderNumber": "522066", "hasPendingOrder": false, "currency": "USD", "customer": "1006", "fixedRecurringAmount": { "amount": 0.0, "currencyCode": "USD" }, "oneTimeNetAmount": { "amount": 0.0, "currencyCode": "USD" }, "usageNetAmount": { "amount": 0.0, "currencyCode": "USD" }, "statusCode": "ACTIVE", "soldToParty": "1006", "soldToPartySite": "1034", "soldToCustAcct": "1006", "billToParty": "1006", "billToSiteUse": "1025", "shipToParty": "1006", "shipToPartySite": "1222", "fulfillmentSourceSystem": "FOM" }, { "assetKey": "abo_a46a9620-6de7-458f-8f75-5e72c5b11f53", "assetDescription": "Panel Warranty", "discountAmount": { "amount": 0.0, "currencyCode": "USD" }, "discountPercent": 0.0, "displayKey": "Panel Warranty-51350127-7", "endDate": "2028-08-15T05:00:00Z", "partNumber": "Panel Warranty", "quantity": 1.0, "totalAssetAmount": { "amount": 0.0, "currencyCode": "USD" }, "priceQuantity": 1.0, "startDate": "2025-08-16T15:48:00Z", "soldToPartyName": "Computer Service and Rentals", "billToAddress": "301 Summit Hill Drive", "partDisplayNumber": "Panel Warranty", "totalContractValue": { "amount": 530, "currencyCode": "USD" }, "billToAccountId": "1006", "businessUnitId": "204", "billToAccountName": "Computer Service and Rentals", "shipToPartyName": "Computer Service and Rentals", "contractedPeriods": 36, "salesProductType": "COVERAGE", "coveredItemOrderNumber": "CPQ-2528", "coveredItemLineNumber": "5", "assetInstanceTracked": false, "inventoryItemId": "300100596226930", "inventoryOrgId": "204", "fulfilledQuantity": 0, "cancelledQuantity": 0, "sourceSystem": "OSS", "subscriptionNumber": "CDRM_35560", "subscriptionProductPuid": "300100641603574", "orderLineId": "100100641603575", "competitiveAsset": "N", "orderNumber": "521956", "coveredItemUom": "Ea", "hasPendingOrder": false, "currency": "USD", "customer": "1006", "fixedRecurringAmount": { "amount": 0.0, "currencyCode": "USD" }, "oneTimeNetAmount": { "amount": 0.0, "currencyCode": "USD" }, "usageNetAmount": { "amount": 0.0, "currencyCode": "USD" }, "statusCode": "ACTIVE", "soldToParty": "1006", "soldToPartySite": "1034", "soldToCustAcct": "1006", "billToParty": "1006", "billToSiteUse": "1025", "shipToParty": "1006", "shipToPartySite": "1222", "subscriptionFulfillmentLineId": "100100641603574", "fulfillmentSourceSystem": "FOM", "coveredFulfillmentLineId": "300100641603561" } ] }
Response Body Sample
{ "inserted": [{ "id": "51631695", "key": "abo_a46a9620-6de7-458f-8f75-5e72c5b11f53", "message": "Inserted successfully" }, { "id": "51631696", "key": "abo_c5c7f396-c27f-4c55-c0d6-efef03de1e82", "message": "Inserted successfully" } ], "updated": [], "errors": [] }