Get Mandatory Parts

post

/rest/v19/config{prodFamVarName}.{prodLineVarName}.{modelVarName}/_mandatoryParts/actions/getMandatoryParts

This action retrieves the mandatory parts of the configuration. This action does not run recommended items rules.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : getMandatoryPartsRequest
Type: object
Show Source
  • Title: Cache Instance Id
    The unique identifier for the entry of configuration data stored in the cache. This is obtained from actions that launch configuration and passed along in subsequent actions.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : getMandatoryPartsResponse
Type: object
Show Source
  • Title: Cache Instance Id
    The unique identifier for the entry of configuration data stored in the cache. This is obtained from actions that launch configuration and passed along in subsequent actions.
  • items
Nested Schema : items
Type: array
Show Source
Nested Schema : part
Type: object
Show Source
Nested Schema : Product type
Type: object
Title: Product type
Show Source
Nested Schema : Price Period
Type: object
Title: Price Period
Show Source
Nested Schema : Price Type
Type: object
Title: Price Type
Show Source
Nested Schema : Price
Type: object
Title: Price
Price
Show Source
Back to Top

Examples

The following example shows how to retrieve the mandatory parts of a configuration by submitting a POST request to the REST resource using cURL.

curl -X POST -H "Authorization: Bearer <token>" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/configvarioTablets.tablets.customTablet/_mandatoryParts/actions/getMandatoryParts

Request Body Sample

{
  "cacheInstanceId": "gsg21bMZ5kpGUWxDIZeGWQCLKbaad33Un1X8huVuDm0K3gAKMeXPbzeQcFsFBAzJ"
}
         

Response Body Sample

The following example shows the contents of the response body in JSON format:

{
  "cacheInstanceId": "gsg21bMZ5kpGUWxDIZeGWQCLKbaad33Un1X8huVuDm0K3gAKMeXPbzeQcFsFBAzJ",
  "items": [{
      "leadTime": -1,
      "comment": "System recommended item",
      "price": {
        "value": "25.00",
        "currency": "USD"
      },
      "partNumber": "Tablet-CloudBackupService",
      "description": "",
      "units": "",
      "directBuy": "Direct Buy",
      "quantity": 1,
      "_part_custom_field5": 0,
      "partDisplayNumber": "Tablet-CloudBackupService",
      "companyAssociations": ""
    }, {
      "leadTime": -1,
      "comment": "System recommended item",
      "price": {
        "value": "100.00",
        "currency": "USD"
      },
      "partNumber": "Tablet-Warranty-2yrs",
      "description": "",
      "units": "",
      "directBuy": "Direct Buy",
      "quantity": 1,
      "_part_custom_field5": 0,
      "partDisplayNumber": "Tablet-Warranty-2yrs",
      "companyAssociations": ""
    }, {
      "leadTime": -1,
      "comment": "System recommended item",
      "price": {
        "value": "40.00",
        "currency": "USD"
      },
      "partNumber": "MEM-100M-4",
      "description": "4GB Memory",
      "units": "",
      "directBuy": "Direct Buy",
      "quantity": 1,
      "_part_custom_field8": {
        "value": "One Time",
        "displayValue": "One Time"
      },
      "_part_custom_field5": 20,
      "partDisplayNumber": "4GB Memory",
      "companyAssociations": ""
    }
  ]
}
Back to Top