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
Comments
Can this be solely done on crosswalk value and not an attribute value? I see in examples references to '10' and '12' and not sure how to determine what those numbers are.
We have list of Crosswalks that we need to delete 3 attributes every month.
Please sign in to leave a comment.