Marketo Asset API | Community
Skip to main content
New Participant
April 18, 2024
Solved

Marketo Asset API

  • April 18, 2024
  • 1 reply
  • 2425 views

I want to fetch latest updated images using Marketo API. Can somebody please help me on this issue. I am not able to find any such filter in Marketo API documentation.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

...I need to fetch only those images which are created on/after specific date or latest created etc.

AFAIK this is not possible.

 

One would hope you don’t have so many images that fetching the whole tree each time is a burden, although it’s understandably frustrating to not have the option.

1 reply

Darshil_Shah1
Community Manager
April 18, 2024

You can refer to the query all files endpoint. If you query all the files, you can look at the updatedAt parameter to find the files that were recently updated. For each file, it returns the following details about it:

{ createdAt (string): Datetime when the file was created , description (string, optional): Description of the file , folder (FileFolder): JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program' , id (integer): Id of the file , mimeType (string): MIME type of the file , name (string): Name of the file , size (integer): Size of the file in bytes , updatedAt (string): Datetime when the file was most recently updated , url (string): Publically accessible URL of the file }
New Participant
April 19, 2024

Hi Darshil - Thanks for your response however, I am trying one more step ahead. The /rest/asset/v1/files.json API fetches all the files/images from design studio. However I am working on the POC where I need to fetch only those images which are created on/after specific date or latest created etc.

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
April 19, 2024

...I need to fetch only those images which are created on/after specific date or latest created etc.

AFAIK this is not possible.

 

One would hope you don’t have so many images that fetching the whole tree each time is a burden, although it’s understandably frustrating to not have the option.