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.

Related Documentation:

Please be advised that our documentation links may be subject to change over time. We kindly request that you search for the documentation using the titles provided below. Thank you for your understanding.

  • Update Attribute
  • Delete Attribute
  • Bulk Attribute Update

 

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

Comments

1 comment
  • 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.  

     

    0

Please sign in to leave a comment.