Dependencies aren't created via api call

I;m trying to create dependcies as soon as a sub-item is created. but giving me errors:

mutation {
change_multiple_column_values(
item_id: 6794241928
board_id: 6751795938
column_values: “{"dependency__1" : {"item_ids" : ["6794240604"]}}”
) {
id
}
}

{
“error_message”: “There are items that are not in the connected boards”,
“error_code”: “ColumnValueException”,
“error_data”: {},
“status_code”: 200,
“account_id”: 6476284
}

I guess this is because the board where the dependency item (6794240604) lives in is not added as a connected board. Boards that contains items referenced in the dependencies must be connected.

Hello,
It looks like you are trying to create dependencies for a sub-item using a GraphQL mutation in Monday.com, but you’re encountering an error indicating that the items are not in the connected boards. Here are some steps to troubleshoot and resolve this issue: Check Connected Boards: Ensure that the item IDs you are referencing (6794240604 and 6794241928) actually exist in the board with ID 6751795938 and any connected boards that might be required for dependencies. Correct the Mutation Syntax: Ensure that the GraphQL mutation is correctly formatted. JSON should be properly escaped within the mutation string.

mutation {
  change_multiple_column_values(
    item_id: 6794241928
    board_id: 6751795938
    column_values: "{\"dependency__1\" : {\"item_ids\" : [\"6794240604\"]}}"
  ) {
    id
  }
}

Verify Column ID: Make sure that dependency__1 is the correct jetnet aa column ID for the dependency column on your board. You can verify the column ID by querying the board’s structure. Check Board Permissions: Ensure that you have the necessary permissions to modify the board and its items.