Expand my Community achievements bar.

Applications for the 2024 Adobe Target Community Mentorship Program are open! Click to the right to learn more about participating as either an Aspirant, to professionally level up with a new Certification, or as a Mentor, to share your Adobe Target expertise and inspire through your leadership! Submit your application today.

Get Request to Retrieve List of IDs in a Given Recommendations Environment

Avatar

Level 1

8/21/20

I was wondering if Adobe had any future development plans to allow a client to request a list of IDs that are currently setup in a given recommendations environment.  Right now, I feel like only 2 of the 3 pieces exist to effectively manage entities.  I can use the GET entities to retrieve an entity, and I can use DELETE to delete an entity.  But, there doesn't seem to be a mechanism to simply get a list of ids that are present in the environment.  If this capability existed, one could theoretically download the list of ids and easily do the equivalent of a full join operation (against internal systems) and easily determine if any entities were missing (and then post with a SAVE request) and entities that were obsolete (and then remove with a DELETE request).  

4 Comments

Avatar

Employee

8/26/20

@JJS1 Through recommendations API you can fetch the list of entities for an environment:

 

https://mc.adobe.io/{tenantId}/target/recs/entities/{id}

If you pass the 'Environment ID' in the path parameters, then only the entities from that environment would be returned.

 

 

Documentation: http://developers.adobetarget.com/api/recommendations/#operation/getEntity

 

Let me know if this helps?

 

Regards,

Karan Dhawan

Avatar

Administrator

10/2/20

Thank you @JJS1 for sharing this feedback!

The Product Management team is taking this into account.

 

Warmly,

Amelia

Status changed to: Investigating

Avatar

Level 1

11/4/20

@karandhawan - Sorry - had not been monitoring this discussion, but I don't think the solve you listed above works.  The API reference document appears to require an actual entity id - not an environment id ... so a standard API request would look something like this:

https://mc.adobe.io/{tenantId}/target/recs/entities/11174589_1340?environmentId=41245

If I just substitute our environment ID for the {id} parameter, it just results in a 404 error.

Avatar

Level 1

11/30/20

@Amelia_Waliany - Any thoughts here?  Is this something that is in some kind of a work queue or do you consider this solved?  If @karandhawan solution works in our environment, I'd appreciate understanding what I am doing incorrectly.  I've tried both:

https://mc.adobe.io/{tenantId}/target/recs/entities/41245

and

https://mc.adobe.io/{tenantId}/target/recs/entities/environment=41245

 

and both just yield 404 errors.