You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by Herman Yu <he...@teeupdata.com> on 2016/01/26 20:41:32 UTC
Update entity attribute which has an array type
It seems that update to entity attribute with complex data types (e.g. array) is supported with v0.6 (ATLAS-47), where can I find the syntax of the REST api that does the update to an attribute with array type?
PUT method on /entities/{guid} still seems only take simple value.
Thanks
Herman.
Re: Update entity attribute which has an array type
Posted by Shwetha Shivalingamurthy <ss...@hortonworks.com>.
The API has a queryparam called Œproperty¹.
1. If the property is set, the request payload should contain the value of
the attribute to be updated.
2. If the property is not set, the request payload should contain the
entity json. The entity json can contain partial entity(with only the
attributes that need to be updated set). The attributes can be of type
primary/array/map/reference. For array, note that there is no way to pass
just the new element to be added to the array. It expects the complete
array. You can use AtlasClient.updateEntity(String guid, Referenceable
entity)
Yes, we still have to document the APIs in detail.
Regards,
Shwetha
On 27/01/16 1:11 am, "Herman Yu" <he...@teeupdata.com> wrote:
>It seems that update to entity attribute with complex data types (e.g.
>array) is supported with v0.6 (ATLAS-47), where can I find the syntax of
>the REST api that does the update to an attribute with array type?
>
>PUT method on /entities/{guid} still seems only take simple value.
>
>Thanks
>Herman.
>
>
>