Skip to main content

Error 500 when sending item mutation with column_values

  • June 10, 2022
  • 3 replies
  • 1301 views

Hello,

Not sure what I’m doing wrong here. I see no red lines in the API Playground when sending this mutation but I’m getting a 500 response every time.

mutation { create_item (board_id: 2782361481, group_id: "new_group", item_name: "Test", column_values: {text7 : "test-data"} ) { id }}

Results in:
{
  "error_message": "Internal server error",
  "status_code": 500
}

This query successfully adds a new item when I exclude the column_values. Any idea what I’m doing wrong?

This topic has been closed for replies.

3 replies

basdebruin
  • Community Expert
  • June 10, 2022

hi @TristenS

Welcome to the community. The column_values parameter needs to me a stringified JSON where you need to escape the internal double quote characters with a \\

Something like this:

mutation { create_item (board_id: 2782361481, group_id: "new_group", item_name: "Test", column_values: "{\\"text7\\" : \\"test-data\\"}" ) { id }}

  • Author
  • New Participant
  • June 10, 2022

Thanks so much Bas!

That did the trick.


  • June 17, 2022

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.