Hi! can somebody help me how can I download files using public url?
Hello there @candyOrate,
you can use a query like this one to get the public URL to download a file:
{
boards(ids: 1234567890) {
items(ids: 1122334455) {
assets {
public_url
name
}
}
}
}
This will return a response like this one:
{
"data": {
"boards": [
{
"items": [
{
"assets": [
{
"public_url": "https://files-monday-com.s3.amazonaws.com/91111117/resources/811111117/thenameofmyfileplussomeotherinfo",
"name": "thenameofmyfile.jpeg"
}
]
}
]
}
]
},
"account_id": 11111111
Hi there,
Is it possible to filter with the assetId?
I tried assets (ids: $assetId)
but it says âField âassetsâ doesnât accept argument âidsââ.
If not, I guess I can get all the assets and filter afterwards, but Iâd rather filter it during the request if itâs possible.
Thank you in advance,
Antoine
Hello again,
You can get the asset IDs, check which one you need and then use that asset ID like this if you want:
{
assets(ids:123456){
public_url
}
}
But I am not sure it makes much sense.
Let me know if you have any other questions!
Cheers,
Matias
Hi Matias,
Thank you for your answer.
Actually as I said I tried this but it returned the message âField âassetsâ doesnât accept argument âidsââ.
Why would it not make much sense to you?
My purpose is to get the publicUrl from a specific asset of a specific item.
Cheers,
Antoine
Hello again @twan,
As you can see in the next email, if you query for the asset directly, you can use the assetâs ID:
If you want to use a different approach, you can use the flow I sent in the past comment
Let me know if you have any questions!
Cheers,
Matias