Update a Part

put

/rest/v16/partSetups/{id}

Use this endpoint to update the specified CPQ part. Note: Any property not specified in the request payload will be implicitly set to blank when making PUT calls. Therefore, all required and numeric Part Custom Fields must be included in the request payload.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Part Setup Create Request Definitions
Type: object
Title: Part Setup Create Request Definitions
Show Source
Nested Schema : Product type
Type: object
Title: Product type
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Part Availability
Type: object
Title: Part Availability
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Price Period
Type: object
Title: Price Period
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Price Type
Type: object
Title: Price Type
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Direct Buy
Type: object
Title: Direct Buy
Determines how the part must be purchased.
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Part Extended Descriptions
Type: object
Title: Part Extended Descriptions
Show Source
Nested Schema : Part Prices
Type: object
Title: Part Prices
Show Source
Nested Schema : Part Translations
Type: object
Title: Part Translations
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Part Extended Descriptions
Type: object
Title: Part Extended Descriptions
Show Source
Nested Schema : Part Extended Description Translations
Type: object
Title: Part Extended Description Translations
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Part Extended Description Translations
Type: object
Title: Part Extended Description Translations
Show Source
Nested Schema : Language
Type: object
Title: Language
The defined language of the rows translated columns.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Part Prices Setup Create Request Definitions
Type: object
Title: Part Prices Setup Create Request Definitions
Show Source
Nested Schema : Price
Type: object
Title: Price
Price of the part.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Part Translation Setup Create Request Definitions
Type: object
Title: Part Translation Setup Create Request Definitions
Show Source
Nested Schema : Language
Type: object
Title: Language
The defined language of the rows translated columns.
Show Source
Back to Top

Response

Supported Media Types

Default Response

Back to Top

Examples

The following example shows how to update the specified CPQ part by submitting a PUT request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl - X PUT - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json"
https://sitename.oracle.com/rest/v16/partSetups/38644116

Request Body

{
  "eligibleForService": "N",
  "directBuy": {
    "lookupCode": "1",
    "displayValue": "Direct Buy"
  },
  "description": "The premium Maintenance covers multi-point inspections, as well as preventive care and replacement of normal wear and tear items that require periodic attention.",
  "enableSelfService": "N",
  "leadTime": -1,
  "_part_custom_field10": {
    "lookupCode": "External",
    "displayValue": "External"
  },
  "eligibleToSell": "N",
  "_part_custom_field9": "subscription",
  "_part_custom_field4": {
    "lookupCode": "Per Month",
    "displayValue": "Per Month"
  },
  "_part_custom_field1": "Service",
  "_part_custom_field2": {
    "lookupCode": "Available",
    "displayValue": "Available"
  },
  "_part_custom_field8": {
    "lookupCode": "Recurring",
    "displayValue": "Recurring"
  },
  "_part_custom_field5": 0.0,
  "numberOfPricePeriods": 0,
  "partnerOrganizationId": null,
  "partDisplayNumber": "MTN2",
  "partNumber": "Premium Maintenance Plan"
}
Back to Top