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
Body ()
Root Schema : assetBulkUpsertInputBean
Type: object
Show Source
Nested Schema : List of Assets
Type: array
Title: List of Assets
List of Assets
Show Source
Nested Schema : assetBean
Type: object
Show Source
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 : 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: object
Show Source
  • Title: Count
    Read Only: true
    The number of resource instances returned in the current range.
  • 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
  • Title: Limit
    Read Only: true
    The actual paging size used by the server.
  • Links
  • Title: OffSet
    Read Only: true
    The offset value used in the current page.
  • 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 : items
Type: array
Show Source
Nested Schema : assetChargeBean
Type: object
Show Source
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 : 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 : Unit Price
Title: Unit Price
Price per unit
Match All
Price per unit
Show Source
Nested Schema : amountBean
Type: object
Show Source
Nested Schema : ResponseCollectionModel_assetInstanceBean
Type: object
Show Source
  • Title: Count
    Read Only: true
    The number of resource instances returned in the current range.
  • 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
  • Title: Limit
    Read Only: true
    The actual paging size used by the server.
  • Links
  • Title: OffSet
    Read Only: true
    The offset value used in the current page.
  • 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 : items
Type: array
Show Source
Nested Schema : assetInstanceBean
Type: object
Show Source
Nested Schema : assetObjBean
Type: object
Show Source
Nested Schema : lookupBean
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : bulkUpsertResponseBean
Type: object
Show Source
Nested Schema : errors
Type: array
Show Source
Nested Schema : inserted
Type: array
Show Source
Nested Schema : updated
Type: array
Show Source
Nested Schema : errorRecord
Type: object
Show Source
Nested Schema : Error Messages
Type: array
Title: Error Messages
Error Messages
Show Source
Nested Schema : successRecord
Type: object
Show Source
Back to Top

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": []
}
Back to Top