It has been a while since I’ve used monday’s API, so this may be a bit out of date…
I figured out how to do this by creating an item with a “Link to Item” column and setting the link in their website (the GUI). Then I inspected the JSON that their site put in the column value via the GraphQL API. It turns out that you can create item links by using the same JSON format as their frontend does when setting the column value in your mutation. It’s a total hackjob and depends on undocumented stuff in the API, but well - it works
After I created an item and set a link in the “Link to Item” column , I used the GraphQL query below to inspect the JSON that the frontend is putting into the column value:
After inspecting the JSON that the frontend created in the column value, I used the same object in my own API calls. The specific format I used when setting a “Link to Item” column value was:
12345 is the pulse (item) ID that I am linking to.
I would then take this blob of JSON, stringify it, and use it as one of the
column_values in the
create_item mutation like so:
On a more general note, I found multiple cases where the documentation for the JSON schema for specific types of column value was missing or different from how the API actually functioned in practice. This strategy of creating things in their GUI and inspecting what their frontend does to the data in GraphQL was the most reliable way for me to determine how to use their API correctly when dealing with column values.
Hopefully this helps you!