Save User Personalization
post
/rest/v16/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:
object
Title:
Show Source
User Personalizations Collection Request Definitions
-
personalizations:
array Save Personalizations
Title:
Save Personalizations
Definition for Save Personalizations
Nested Schema : Save Personalizations
Type:
array
Title:
Save Personalizations
Definition for Save Personalizations
Show Source
Nested Schema : items
Type:
Show Source
object
-
entityType:
string
Title:
Entity Type
String value that specifies the entity type of the personalization. -
personalizationData:
array Personalization Data
Title:
Personalization Data
Data for saving personalization properties -
personalizationName:
string
Title:
Personalization Name
String value that specifies the variable name of the personalization.
Nested Schema : Personalization Data
Type:
array
Title:
Personalization Data
Data for saving personalization properties
Show Source
Nested Schema : items
Type:
Show Source
object
-
componentName:
string
Title:
Name of the Component
Component Name for which personalization properties are added -
modifiedDate:
string(date)
Title:
Modified Date
last modified date of Properties -
properties:
object Properties
Title:
Properties
Properties which are personalized by the user
Nested Schema : Properties
Type:
object
Title:
Properties
Properties which are personalized by the user
Response
Supported Media Types
- application/json
Default Response
Root Schema : User Personalizations Collection Response Definitions
Type:
object
Title:
Show Source
User Personalizations Collection Response Definitions
-
result:
array Save Personalizations
Title:
Save Personalizations
Definition for Save Personalizations
Nested Schema : Save Personalizations
Type:
array
Title:
Save Personalizations
Definition for Save Personalizations
Show Source
Nested Schema : items
Type:
Show Source
object
-
entityType:
string
Title:
Entity Type
String value that specifies the entity type of the personalization. -
personalizationData:
array Personalization Data
Title:
Personalization Data
Data for saving personalization properties -
personalizationName:
string
Title:
Personalization Name
String value that specifies the variable name of the personalization.
Nested Schema : Personalization Data
Type:
array
Title:
Personalization Data
Data for saving personalization properties
Show Source
Nested Schema : items
Type:
Show Source
object
-
componentName:
string
Title:
Name of the Component
Component Name for which personalization properties are added -
modifiedDate:
string(date)
Title:
Modified Date
last modified date of Properties -
properties:
object Properties
Title:
Properties
Properties which are personalized by the user
Nested Schema : Properties
Type:
object
Title:
Properties
Properties 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 - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" "https://sitename.oracle.com/rest/v16/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" } ] }