Hello @Yash!
- To download the file you can use a query like this one:
{
boards(ids: 1234567890) {
items(ids: 1122334455) {
assets {
public_url
}
}
}
}
And you will find a link to the download.
- There is a 20k limit for the amount of files that can be added to a board.
So, you can add up to 20k files to a single item’s files column as long as there are no more files in the board.
I hope this helps!
Cheers,
Matias
@Matias.Monday Is it possible to have authenticated API for download.
I was checking with url and used bearer token, but that says You need to log in or sign up before continuing.
.
Is there any otherway we can download beside public url?
Hello @Yash!
For someone to get that URL, they would have to be authenticated.
Then the URL itself is used without authentication.
There is no query to get the file directly with a request that uses an API as the Authentication in the header.
Cheers,
Matias
@Matias.Monday another quick question.
What would be the max array size of assets when im doing above query. In each item how many assets I can have?
Hello @Yash !
Technically, the limit comes from the assets in a board. Each board can have up to 20k files in the file columns.
So if you have files in one column of only one item in a board, it could have up to 20k files.
Hope that helps!
Cheers,
Matias
hi! i was trying to access the public url but it shows below
Hello @candyOrate,
I believe that is not an error coming from monday.
How are you trying to get the public URL exactly?
You should be able to use the URL if you query public_url instead of url.