Get Part Metadata Action
post
/rest/v16/partSetups/actions/getPartMetadata
Use this endpoint to retrieve return the metadata for CPQ standard and part custom fields.
Request
Supported Media Types
- application/json
Root Schema : Part Setups Get Part Metdata Request Definition
Type:
object
Title:
Part Setups Get Part Metdata Request Definition
Response
Supported Media Types
- application/json
Default Response
Root Schema : Part Setups Get Part Metdata Response Definition
Type:
object
Title:
Show Source
Part Setups Get Part Metdata Response Definition
-
partMetadata:
object Part Metadata Response Model
Title:
Part Metadata Response Model
The metadata definition for part setups.
Nested Schema : Part Metadata Response Model
Type:
object
Title:
Part Metadata Response Model
The metadata definition for part setups.
Show Source
-
partMetadata:
object Part Metadata Response Field
Title:
Part Metadata Response Field
The metadata definition for part setups.
Nested Schema : Part Metadata Response Field
Type:
object
Title:
Part Metadata Response Field
The metadata definition for part setups.
Show Source
-
customFields:
object Part Setups Custom Fields
Title:
Part Setups Custom Fields
List of the custom fields for part setups. -
standardFields:
object Part Setups Standard Fields
Title:
Part Setups Standard Fields
List of the standard fields for part setups.
Nested Schema : Part Setups Custom Fields
Type:
object
Title:
Part Setups Custom Fields
List of the custom fields for part setups.
Show Source
-
customFields:
array Custom Fields
Title:
Custom Fields
The list of standard part setups fields.
Nested Schema : Part Setups Standard Fields
Type:
object
Title:
Part Setups Standard Fields
List of the standard fields for part setups.
Show Source
-
standardFields:
array Standard Fields
Title:
Standard Fields
The list of standard part setups fields.
Nested Schema : Custom Fields
Type:
array
Title:
Custom Fields
The list of standard part setups fields.
Show Source
-
Array of:
object Part Setups Standard Field
Title:
Part Setups Standard Field
Single part setups standard field definition.
Nested Schema : Part Setups Standard Field
Type:
object
Title:
Part Setups Standard Field
Single part setups standard field definition.
Show Source
-
fieldName:
string
Title:
Field Name
The name of the field. -
label:
string
Title:
Label
The label of the field. -
required:
boolean
Title:
Required
Whether the field is required. -
type:
string
Title:
Type
The type of the field.
Nested Schema : Standard Fields
Type:
array
Title:
Standard Fields
The list of standard part setups fields.
Show Source
-
Array of:
object Part Setups Standard Field
Title:
Part Setups Standard Field
Single part setups standard field definition.
Examples
The following example shows how to retrieve return the metadata for standard and part custom fields by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v16/partSetups/actions/getPartMetadata
Response Body
{ "partMetadata": { "standardFields": [{ "fieldName": "dateAdded", "label": "Date Added", "required": true, "type": "Date" }, { "fieldName": "dateModified", "label": "Date Modified", "required": false, "type": "Date" }, { "fieldName": "defaultUOMCode", "label": "Default UOM Code", "required": false, "type": "String" }, { "fieldName": "description", "label": "Description", "required": false, "type": "String" }, { "fieldName": "directBuy", "label": "Direct Buy", "required": true, "type": "Single Select Menu" }, { "fieldName": "eligibleForService", "label": "Eligible for Service", "required": false, "type": "String" }, { "fieldName": "eligibleToSell", "label": "Eligible to Sell", "required": false, "type": "String" }, { "fieldName": "enableSelfService", "label": "Enable Customer Self-Service", "required": false, "type": "String" }, { "fieldName": "externalKey1", "label": "External Key 1", "required": false, "type": "String" }, { "fieldName": "externalKey2", "label": "External Key 2", "required": false, "type": "String" }, { "fieldName": "id", "label": "Id", "required": false, "type": "Integer" }, { "fieldName": "leadTime", "label": "Lead Time", "required": false, "type": "Integer" }, { "fieldName": "numberOfPricePeriods", "label": "Number of Price Periods", "required": false, "type": "Integer" }, { "fieldName": "partDisplayNumber", "label": "Part Display Number", "required": false, "type": "String" }, { "fieldName": "partNumber", "label": "Part Number", "required": true, "type": "String" }, { "fieldName": "partNumberLower", "label": "Part Number Lower", "required": false, "type": "String" }, { "fieldName": "partnerOrganizationId", "label": "Partner Organization Id", "required": false, "type": "String" }, { "fieldName": "partnerPartId", "label": "Partner Part Id", "required": false, "type": "String" }, { "fieldName": "partnerStandardPriceBookEntryId", "label": "Partner Standard Pricebook Entry Id", "required": false, "type": "String" }, { "fieldName": "pricePeriod", "label": "Price Period", "required": false, "type": "String" }, { "fieldName": "priceType", "label": "Price Type", "required": false, "type": "String" }, { "fieldName": "salesProductType", "label": "Sales Product Type", "required": false, "type": "String" }, { "fieldName": "units", "label": "Units", "required": false, "type": "String" } ], "customFields": [{ "fieldName": "_part_custom_field1", "label": "Product Group", "required": false, "type": "String", "showOnSearchPage": false, "showOnSearchResultsPage": false, "showOnBomPage": false, "showOnDetailPage": false }, { "fieldName": "_part_custom_field10", "label": "Product type", "required": false, "type": "Single Select Menu", "showOnSearchPage": false, "showOnSearchResultsPage": false, "showOnBomPage": false, "showOnDetailPage": false }, { "fieldName": "_part_custom_field2", "label": "Part Availability", "required": false, "type": "Single Select Menu", "showOnSearchPage": true, "showOnSearchResultsPage": true, "showOnBomPage": false, "showOnDetailPage": false }, { "fieldName": "_part_custom_field3", "label": "Max discount %", "required": false, "type": "String", "showOnSearchPage": false, "showOnSearchResultsPage": false, "showOnBomPage": false, "showOnDetailPage": false }, { "fieldName": "_part_custom_field4", "label": "Price Period", "required": false, "type": "Single Select Menu", "showOnSearchPage": false, "showOnSearchResultsPage": false, "showOnBomPage": false, "showOnDetailPage": true }, { "fieldName": "_part_custom_field5", "label": "Cost", "required": false, "type": "Number", "showOnSearchPage": false, "showOnSearchResultsPage": false, "showOnBomPage": false, "showOnDetailPage": false }, { "fieldName": "_part_custom_field8", "label": "Price Type", "required": false, "type": "Single Select Menu", "showOnSearchPage": false, "showOnSearchResultsPage": false, "showOnBomPage": false, "showOnDetailPage": true }, { "fieldName": "_part_custom_field9", "label": "product", "required": false, "type": "String", "showOnSearchPage": false, "showOnSearchResultsPage": false, "showOnBomPage": false, "showOnDetailPage": false } ] } }