# Distribution UUID calls on Aristotle API - need Data Element UUID

**URL:** <https://community.aristotlemetadata.com/t/distribution-uuid-calls-on-aristotle-api-need-data-element-uuid/38>\
**Category:** Uncategorized\
**Created:** [August 27, 2020, 1:28am UTC](https://community.aristotlemetadata.com/t/distribution-uuid-calls-on-aristotle-api-need-data-element-uuid/38 "2020-08-27T01:28:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.aristotlemetadata.com/michael/32/188_2.png) [@Michael](https://community.aristotlemetadata.com/u/Michael)\
**Post date:** [August 27, 2020, 1:28am UTC](https://community.aristotlemetadata.com/t/distribution-uuid-calls-on-aristotle-api-need-data-element-uuid/38/1 "2020-08-27T01:28:57Z")

</div>

I am looking at implementing a use case where we I can refresh another systems metadata using Aristotle as a source of truth.

The user will pass a list of distribution UUID’s, and through a series of API calls my code will find out all the useful information about each distribution, gather a list of the linked data elements (with name, definition), then attach value domain/permissible value information if available.

When I make a call to _/metadata/distribution/{item\_uuid}_ I am almost home, within the response is a distributiondataelementpath\_set array is just what I’m after to get the Data Element information. However, for some reason the data element id given is an Aristotle ID:

“distributiondataelementpath\_set”: [  
{  
“id”: “a uuid for the distributiondataelementpath\_etc goes here, which can’t be used in any other API call that I can see”,  
“data\_element”: 12345,  
“specialisation\_classes”: []  
},

I can’t use data\_element in any other API call. For example, I’d love to call _/metadata/dataelement/{item\_uuid}_ but this wants a UUID, not Aristotle ID.

It would be great if I also had available something like **“data\_element\_uuid”: ab-number-you-need-to-go-further-cd**

What are my options? Given a case where I only know a distribution UUID, I want to be able to find everything I need right to value domain data. Data Element ID is the bottleneck.

---

<div class="post-metadata">

**Author:** ![harry](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@harry](https://community.aristotlemetadata.com/u/harry)\
**Post date:** [October 14, 2020, 10:53pm UTC](https://community.aristotlemetadata.com/t/distribution-uuid-calls-on-aristotle-api-need-data-element-uuid/38/2 "2020-10-14T22:53:22Z")

</div>

Hey,

That is definitely a problem, we are currently using just the aristotle id for referencing metadata from component items for performance reasons, although that may change in the future.

So our resolution for now is to make the metadata endpoints accept either a uuid or an id, that way you can fetch further data through /metadata/dataelement . Let us know if that will work for your use case

We are planning to have that change pushed out by next Tuesday.

Harry

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.aristotlemetadata.com/michael/32/188_2.png) [@Michael](https://community.aristotlemetadata.com/u/Michael)\
**Post date:** [October 14, 2020, 11:27pm UTC](https://community.aristotlemetadata.com/t/distribution-uuid-calls-on-aristotle-api-need-data-element-uuid/38/3 "2020-10-14T23:27:53Z")

</div>

Unless the API can accommodate inputs other than UUID, what I definitely need is the UUID.

In the meantime I got around this problem using graphQL instead. With a distribution UUID, I can grab all the relevant Data Elements, Value Domains and Permissible Values using something like this:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/aristotle/original/1X/f4fe07e5ac9f072753850c30dbe18ae87bc8af7f.png)

---

<div class="post-metadata">

**Author:** ![harry](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@harry](https://community.aristotlemetadata.com/u/harry)\
**Post date:** [October 15, 2020, 12:49am UTC](https://community.aristotlemetadata.com/t/distribution-uuid-calls-on-aristotle-api-need-data-element-uuid/38/4 "2020-10-15T00:49:01Z")

</div>

So this change would make the API accept the ID as an input, so you could just go to /metadata/dataelement/123 . That should give you the option of using the API for this kind of query.

Although for the query you posted using graphQL is definitely going to be much nicer. Glad you were able to get that going.
