Save User Personalization
post
/rest/v19/userPersonalizations/actions/save
Use this endpoint to save the user Line Item Grid personalization.
Request
Supported Media Types
- application/json
Root Schema : User Personalizations Collection Request Definitions
Type:
objectTitle:
Show Source
User Personalizations Collection Request Definitions-
personalizations:
array Save Personalizations
Title:
Save PersonalizationsDefinition for Save Personalizations
Nested Schema : Save Personalizations
Type:
arrayTitle:
Save PersonalizationsDefinition for Save Personalizations
Show Source
Nested Schema : items
Type:
Show Source
object-
entityType:
string
Title:
Entity TypeString value that specifies the entity type of the personalization. -
personalizationData:
array Personalization Data
Title:
Personalization DataData for saving personalization properties -
personalizationName:
string
Title:
Personalization NameString value that specifies the variable name of the personalization.
Nested Schema : Personalization Data
Type:
arrayTitle:
Personalization DataData for saving personalization properties
Show Source
Nested Schema : items
Type:
Show Source
object-
componentName:
string
Title:
Name of the ComponentComponent Name for which personalization properties are added -
modifiedDate:
string(date)
Title:
Modified Datelast modified date of Properties -
properties:
object Properties
Title:
PropertiesProperties which are personalized by the user
Nested Schema : Properties
Type:
objectTitle:
PropertiesProperties which are personalized by the user
Response
Supported Media Types
- application/json
Default Response
Root Schema : User Personalizations Collection Response Definitions
Type:
objectTitle:
Show Source
User Personalizations Collection Response Definitions-
result:
array Save Personalizations
Title:
Save PersonalizationsDefinition for Save Personalizations
Nested Schema : Save Personalizations
Type:
arrayTitle:
Save PersonalizationsDefinition for Save Personalizations
Show Source
Nested Schema : items
Type:
Show Source
object-
entityType:
string
Title:
Entity TypeString value that specifies the entity type of the personalization. -
personalizationData:
array Personalization Data
Title:
Personalization DataData for saving personalization properties -
personalizationName:
string
Title:
Personalization NameString value that specifies the variable name of the personalization.
Nested Schema : Personalization Data
Type:
arrayTitle:
Personalization DataData for saving personalization properties
Show Source
Nested Schema : items
Type:
Show Source
object-
componentName:
string
Title:
Name of the ComponentComponent Name for which personalization properties are added -
modifiedDate:
string(date)
Title:
Modified Datelast modified date of Properties -
properties:
object Properties
Title:
PropertiesProperties which are personalized by the user
Nested Schema : Properties
Type:
objectTitle:
PropertiesProperties which are personalized by the user
Examples
The following example shows how to save the Line Item Grid personalization 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" "https://sitename.oracle.com/rest/v19/userPersonalizations/actions/save
Request Body Sample
{
{
"personalizations": [{
"personalizationName": "oraclecpqo-transaction-userState",
"personalizationData": [{
"properties": {
"expandMode": true,
"columnOrder": {
"_chargeSetControl": 0,
"_group_sequence_number": 1,
"_part_number-_model_name": 2,
"_part_display_number": 5,
"listPrice_l": 6,
"_price_quantity": 8,
"customDiscountValue_l": 7,
"customDiscountType_l": 9,
"customDiscountAmount_l": 10,
"netPrice_l": 11,
"priceScore_l": 12,
"netAmount_l": 13,
"contractListValue_l": 14,
"contractDiscount_l": 15,
"contractValue_l": 16,
"fulfillmentStatus_l": 3,
"oRCL_ABO_ActionCode_l": 4
},
"hiddenColumns": ["_part_display_number", "oRCL_ABO_ActionCode_l"],
"textWrapMode": "wrap",
"columnWidth": {
"fulfillmentStatus_l": 200
},
"sortCriteria": {
"attribute": "listPrice_l",
"direction": "descending"
}
},
"componentName": "table-transactionLine"
}
],
"entityType": "COMMERCE"
}
]
}
Response Body Sample
{
{
"result": [{
"personalizationName": "oraclecpqo-transaction-userState",
"personalizationData": [{
"componentName": "table-transactionLine",
"properties": {
"textWrapMode": "wrap",
"hiddenColumns": ["_part_display_number", "oRCL_ABO_ActionCode_l"],
"columnOrder": {
"_chargeSetControl": 0,
"_group_sequence_number": 1,
"_part_number-_model_name": 2,
"_part_display_number": 5,
"listPrice_l": 6,
"_price_quantity": 8,
"customDiscountValue_l": 7,
"customDiscountType_l": 9,
"customDiscountAmount_l": 10,
"netPrice_l": 11,
"priceScore_l": 12,
"netAmount_l": 13,
"contractListValue_l": 14,
"contractDiscount_l": 15,
"contractValue_l": 16,
"fulfillmentStatus_l": 3,
"oRCL_ABO_ActionCode_l": 4
},
"expandMode": true,
"columnWidth": {
"fulfillmentStatus_l": 200
},
"sortCriteria": {
"attribute": "listPrice_l",
"direction": "descending"
}
},
"modifiedDate": "2023-11-17 19:35:52"
}
],
"entityType": "COMMERCE"
}
]
}