Hi All!
Been searching for an answer to this one for quite a while and even thought I found something, it doesn’t look it’s working for me!
I’m trying to use the API to interact with the “Item link column” for each item. Basically, I want to add and remove related items.
So I found this: https://monday.com/developers/v2#column-values-section-itemlink
which has the following example:
JSON.stringify({
“item_ids”: [
4616627,
4616628,
4616629
]
});
JSON string - use this in the GraphiQL editor:
“{"item_ids":[4616627,4616628,4616629]}”
However, when I try to do the same thing in the API Playground I keep getting this message:
{
“error_code”: “CorrectedValueException”,
“status_code”: 200,
“error_message”: “column type DependencyColumn is not supporting changing the column value with simple column value, please check our API documentation for the correct data structure for this column. https://monday.com/developers/v2#column-values-section”,
“error_data”: {
“column_value”: “{"item_ids":[856732638]}”,
“column_type”: “dependency”
}
}
For reference this is the mutation body I am using:
mutation {
change_simple_column_value (
board_id: 856729789,
item_id: 856764140,
column_id: “dependent_on”,
value: “{"item_ids":[856732638]}”)
{
id
}
}
Can any help?! Has anyone else come across this?
Many thanks,
Angelo