Update Value of Custom Attribute

By using this operation, you can update the value of user-defined attributes at run time when golden record cache is defined and running.

Caution: You can update only the value of external attributes.
HTTP Method
Endpoint URL See Endpoint
Resource /fastcache/record/update
Request Parameters Specify the following parameters:
Name Description Type Data Type
Required
repositoryName Repository name on which the operation is to be performed body string
cacheDataList Key as an external attribute name and valueList is the value of the attribute Map of String
productId PRODUCTID of the record for which external attributes values are updated String
productIdExt PRODUCTIDEXT of the record for which external attributes values are updated String
name External attribute name. String
valueList Value of an external attribute. List
Media Type application/json
Request Model
{
  "productId": "string",
  "productIdExt": "string",
  "repositoryName": "string",
  "cacheDataList": [
    {
      "name": "string",
      "valueList": [
        {}
      ]
    }
  ]
}
Response Model
{
responseMessages:	[
 {
"code": "string",
"message": "string",
"type":	"string",
]
"success":	"boolean"
  }
  ]
}
]
Request Example
{
  "repositoryName": "PERSON",
  "productId": "1099",
  "productIdExt": "1099",
  "cacheDataList": [
    {
      "name": "PAYBACKNUMBER",
      "valueList": [
        349898767
      ]
    },
    {
      "name": "LOYALITYPOINT",
      "valueList": [
        23
      ]
    }
  ]
}
Response Example
{
  "code": "FC-00008",
  "message": "Fields value/s updated successfully.",
  "type": "Info"
}
Success Response Example:

Code: 200 successful operation

Error Response If the response is unsuccessful, either of the following error code is displayed:

Example:

Code: 400 Parameters required are missing

OR

Code: 500 Invalid Request

For error code response, see Error Handling .