Discussions
API call to GET a list of images based on a created before date and zero dependancies

Hi Everyone! ?
So, I have searched high and low all of yesterday, trawling Oracle documents and YouTube for this answer - pleeeease help, if you can ?
OK so - I need to run in Postman and API call to do the following;
- GET all images within an ELOQUA instance before 01 January 2019 with no dependencies
- Once I have that - DELETE those images from the ELOQUA instance
It sounds so simple doesn't it - however I am seriously lacking as to how to achieve this.
Please help if you can!
Thanks!
Answers
-
Hi User_YZHGG
Thank you for reaching out to the community forum with your question.
I have reviewed the question and what I understood is you need an API reference to pull images and delete them. Therefore, I recommend you go through the below links for the answer.
Bulk API Reference:
https://docs.oracle.com/en/cloud/saas/marketing/eloqua-rest-api/api-application-1.0-images.html
Retrieve a list of images:
Delete an image:
If you would like to continue the discussion here, please feel free to post your comment or feedback.
Please click "yes" in the "Did this answer your question" section below if I answered your question.
Thanks and best regards
Sachin Jain
Community Manager
Stay Safe | Stay Healthy
Thanks, and Best Regards
Sachin Jain | CX Community Manager
-
Hi Sachin,
Thanks for your reply, really appreciate it...
Basically what I need is an API call(s) to do the following:
- Identify those images in ELOQUA which have not been updated since January 2020 - so before then. - GET
- Once I have that, I then need to DELETE these from Eloqua via API call
The documentation, although helpful - do not give guidance to that specific request. It's annoying as this should be so simple however I just do not know the more intricate API call to fulfil such a request...
Any guidance you can give would be great - I would've thought this isn't an uncommon request...
Many thanks.
-
You can retrieve images via API that have not been updated since January 2020 by using the search URL parameter like this:
GET /api/rest/1.0/assets/images?search=updatedAt<1577865600
Once you have this list you will need to delete the images one at a time by id using the Delete an image endpoint.
-
Please click "yes" in the "Did this answer your question" section if @Lou Patrick answered your question.
Thanks
Sachin Jain
Stay Safe | Stay Healthy
Thanks, and Best Regards
Sachin Jain | CX Community Manager
-
Hi @Lou Patrick
Thank you very much.
Is there an API call which can delete the images 'en - mass' aka in bulk so to speak - i.e. not having to delete each one separately?
Thank you.