I found a way to add images into Monday docs that actually works:
mutation {
create_doc_block(
doc_id: "123456789",
type: image,
content: {
publicUrl: "https://test.test/test.png",
width: 900,
alignment: "center"
}
) {
id
}
}
The important thing is that type has to be the enum image (not "image" as shown in the docs).
Right now, there’s no way to upload or attach a file directly it only works with a publicly accessible URL.
I tried url, asset_id, and local file paths, but none of them work.
My code is a little bit different since I use php but hope this helps ![]()