500 internal server error while creating item with column_values

I am using Postman as well as ruby platform to create a new item with populated columns, however I am able to create an Item with item_name, but when I am adding other columns value, api returning 500 internal server error. I don’t know what is going wrong here. I tried interpolating my variables in different ways but nothing worked. So, reaching out to this forum. If anybody can help in this.

Below is my request payload from postman which is working absolutely fine.

{
“query”: “mutation { create_item (board_id: xxxxxx, group_id: sample, item_name: newItem) {id} }”
}

Below is my request payload from postman which is not working.
{
“query”: “mutation { create_item (board_id: 1472475168, group_id: topics, item_name: newItem, column_values: {“text”: “noissue”}) {id} }”
}

It is giving me parsing error:
{
“errors”: [
{
“message”: “Parse error on “text” (STRING) at [1, 101]”,
“locations”: [
{
“line”: 1,
“column”: 101
}
]
}
],
“account_id”: xxxx
}

I tried this as well. But it is giving 500 internal server error.
{
“query”: “mutation { create_item (board_id: 1472475168, group_id: topics, item_name: newItem, column_values: {text: “value”}) {id} }”
}

@Ayelet Can you help in this?

The error is too generic and does not tell you exact problem. The first thing you need to know about the http error 500 the page isn’t working is that the error can only be resolved by fixes to the Web server software. It is not a client-side problem meaning that the problem is not with your browser, your computer, or your internet connection. The error is too generic and does not tell you exact problem. When you hit an internal server error it usually means some parts of your web server is not configured correctly or the application is trying to do something and the server is failing to carry out the request due to a conflict or restriction. Please check the error logs on your server for a more specific error message, which may give a clue to why this is happening on your website/server. These errors are often caused by plugin or theme function conflicts, so if you have access to your Dashboard, try deactivating all plugins. It is up to the administrators of the Web server site to locate and analyse the logs which should give further information about the error. However, there are often ways to quickly get around the problem:

  • Reload or Refresh the Webpage.
  • Check you server permission.
  • Corrupt Plugins.
  • .htaccess file may be corrupt.
  • Exceeded PHP memory limit.
  • Increase the memory setting in the wp-config.php file.
  • Clear your browser cookies and cache

Hello @vishwanath.yadav_dax,
Whenever monday.com gives a 500 error, it is usually down to two things. Either their server is overwhelmed at the time of your operation, or there is problem with your query or mutation.
In this case, I think it is the latter since your mutation seems to not have the correct formatting.
Try this.

mutation {
    create_item (board_id: 1472475168, group_id: "topics", item_name: "newItem",  column_values: "{\"text\" : \"noissue\"}" ) {
        id
    }
}

See the documentation here on how to change the various column values. Also, group id and item name have to be in quotation marks.
Hope this helps.