Parse error when using create_item

Running into errors when trying to create_item and it is giving a Parse error.

Here’s the code:
mutation ($boardId: Int!) {
create_item (
board_id: $boardId,
group_id: “topics”,
item_name: “New item”,
column_values: “{
"text0":"SKYLINE",
"text5":"timbuktu"
}”
) {id}
}

Here’s the error message
{
“errors”: [
{
“message”: “Parse error on bad Unicode escape sequence: "{\n \\\"text0\\\":\\\"SKYLINE\\\",\n \\\"text5\\\":\\\"timbuktu\\\n }" (error) at [6, 26]”,
“locations”: [
{
“line”: 6,
“column”: 26
}
]
}
],
“account_id”: 12345678
}

Thanks in advance.

NVM, worked it out…it didn’t like the line break…

In case someone else can reference it in the future, below worked.

mutation ($boardId: Int!) {
create_item (
board_id: $boardId,
group_id: “topics”,
item_name: “New item”,
column_values: “{"text0":"SKYLINE","text5":"timbuktu"}”
) {id}
}

1 Like