How to set the attribute code as the idscheme when querying entity instance by attribute value?

I want do some query on entity instance by filter with attribute value:
api/33/trackedEntityInstances.json?trackedEntityType=pJvJ2QccHGh&&ou=pJ0C3w6gmrK&ouMode=DESCENDANTS&fields=trackedEntityInstance,attributes[code,value,attribute]&attribute=Te14Gic90v3:eq…

but I don’t want using the attribute’s id as the idscheme, I want to using the attribute’s code. but I found there is no option like:

attributeIdScheme=CODE.

Then how? there is a way?

Hi,
So I understand from your question that you want:
filter=<ATTRIBUTE-CODE>:IN:{VALUE}?

Yes.

1 Like

Sorry @linxd, I’m still not sure if that’s possible but I got a response from one of our community members:

To quote @plinnegan:

I do not think attribute id scheme exports are supported currently for tracker programs, though I do not know about the new tracker endpoint!

I will let you know if I ever find it that there’s a way to do: filter=<ATTRIBUTE-CODE>:IN:{VALUE}

Thanks!

Thank you very much!

1 Like