Update connected board column API

Having difficulties updating a column value on a linked item. I have fetched the relevant ids in prior calls.

The error I’m receiving is the following

“{
“error_message”: “Link to item column value structure invalid”,
“error_code”: “ColumnValueException”,
“error_data”: {},
“status_code”: 200,
“account_id”: 13892668
}”

My GraphQL code is setup like this:

mutation UpdateColumnValue($boardId: ID!, $itemId: ID!, $columnId: String!, $value: JSON!) {
change_column_value(
board_id: $boardId,
item_id: $itemId,
column_id: $columnId,
value: $value
) {
id
}
}

Variables:

{
“boardId”: “7238576025”,
“itemId”: “7238633980”,
“columnId”: “connect_boards5__1”,
“value”: “{“linkedPulseIds”: [{“linkedPulseId”: “7194352954”}]}”
}

Hello there @NicoTester,

Would you be able to please try something like this:

mutation UpdateColumnValue($boardId: ID!, $itemId: ID!, $columnValues: JSON!) {
  change_multiple_column_values(
    board_id: $boardId
    item_id: $itemId
    column_values: $columnValues
  ) {
    id
  }
}
{
  "boardId": "7238576025",
  "itemId": "7238633980",
  "columnValues": "{\"connect_boards5__1\" : {\"item_ids\" : [\"7194352954\"]}}"
}

I hope that helps!

Cheers,
Matias

1 Like