Save User Personalization

post

/rest/v16/userPersonalizations/actions/save

Use this endpoint to save the user Line Item Grid personalization.

Request

Supported Media Types
Body ()
Root Schema : User Personalizations Collection Request Definitions
Type: object
Title: User Personalizations Collection Request Definitions
Show Source
Nested Schema : Save Personalizations
Type: array
Title: Save Personalizations
Definition for Save Personalizations
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : Personalization Data
Type: array
Title: Personalization Data
Data for saving personalization properties
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : Properties
Type: object
Title: Properties
Properties which are personalized by the user
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : User Personalizations Collection Response Definitions
Type: object
Title: User Personalizations Collection Response Definitions
Show Source
Nested Schema : Save Personalizations
Type: array
Title: Save Personalizations
Definition for Save Personalizations
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : Personalization Data
Type: array
Title: Personalization Data
Data for saving personalization properties
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : Properties
Type: object
Title: Properties
Properties which are personalized by the user
Back to Top

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"
    }
  ]
}
Back to Top