Skip to main content

Hi


I have assets attached to my Item in Monday board. When i go to an item in board and under the updates and files the attachments are there.


When i try to retrieve the same using an API call the response for assets is blank

@devopsintegration You’ll need to pass asset_source argument. It can be all, columns, gallery:


{
"query": "query { items(ids: XXXXXXXX) {assets(assets_source: all) {public_url}}}"
}

Hi @denlunev


Thanks for your response here. But i am still getting an error with the above query even i have assets


See below


@devopsintegration This is strange, my request works with the same configuration:


However, I can see you’ve got “Invalid GraphQL” error. So, something is wrong with the request.

I would try to do POST and check if you have correct headers, e.g. Content-Type, Authorization, etc.


Hi @denlunev


I really appreciate your help on this


I use the same query as per your above screenshot and request type POST. It works for me


Do you have any idea if there is any query to get all files (Files which are uploaded to Updates/Comments section and Files which are uploaded to Files section of an Item)


I need all these files with Name, File Type, File Size, Public URL etc.


If you can have any idea can you please share it with me


I really appreciate your help on this


Thanks


@devopsintegration yes, for updates/comments, you need additional section in the query. Here is a full example of all files:


{
"query": "query { items(ids: XXXXXXXX) {updates {assets {public_url, name, file_extension}} assets(assets_source: all) {public_url, name, file_extension}}}"
}

For other file fields refer to Assets (files)


Hi @denlunev


Thank you so much


I really appreciate your help on this


Thanks


Reply