How can I update or delete attribute data from an entity (single record and in bulk)?

Question

How can I edit attribute data via API?

Answer

Update Attribute:

PUT /{attribute value URI}

Simple Attribute, Different Source System Example:

PUT /entities/12/attributes/Name/1?crosswalkValue=XYZ.id1 

 Body:{       "value":"Jack" }

Delete Attribute

DELETE /{attribute value URI}

Example:

DELETE /entities/10/attributes/Name/1?crosswalkValue=XYZ.id1

Bulk Attribute Update

POST {TenantURL}/entities/_update

Example:

POST { TenantURL }/entities/_update 

{     "objects": { 

        "filter": "equals(attributes.Address.City, 'Las Vegas') and equals(type, 'configuration/entityTypes/HCP')",

         "excludeList": ["entities/AAA", "entities/BBB"]     },

     "actions": [{ 

        "operation": "AddAttribute",

         "operationParameters": {

             "sourceTypes": ["FB", "Reltio"],

             "attributeURI": "configuration/entityTypes/HCP/attributes/FirstName", 

            "attributeValue": "John"    }    
}]
}

Note:  The recommended batch response body is 50.

References

Update Attribute: https://docs.reltio.com/attrapi/updateattr.html

Delete Attribute: https://docs.reltio.com/attrapi/deleteattr.html

Bulk Attribute Update: https://docs.reltio.com/entitiesapi/bulkattrupdate.html

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.