Sha256: e19f3fb32eb979f45cddbf02634e47a651775f0e6545339a74aa683defb0d27b

Contents?: true

Size: 1.66 KB

Versions: 6

Compression:

Stored size: 1.66 KB

Contents

# #change\_simple\_column\_value

The `change_simple_column_value` mutation will allow you to update the value of a column for a specific item.

### Basic usage

This method accepts various arguments to update the column's value. You can find the complete list of arguments [here](https://developer.monday.com/api-reference/docs/columns#arguments-4).

You can pass these filters using the `args` option.

{% code lineNumbers="true" %}
```ruby
client = Monday::Client.new(token: <AUTH_TOKEN>)

args = {
  board_id: 123,
  item_id: 1234,
  column_id: "status",
  value: "Triage"
}
response = client.change_simple_column_value(args: args)

puts response.body
```
{% endcode %}

This will update the `status` column value for item ID `1234` on the board ID `123` to "Triage".

This will return the items' ID and name fields by default.

The response body from the above query would be as follows:

{% code lineNumbers="true" %}
```json
{
  "data": {
    "change_simple_column_value": {
      "id": "1234",
      "name": "Task 1"
    }
  },
  "account_id": 123
}
```
{% endcode %}

### Customizing fields to retrieve

You can customize the fields to retrieve by passing in the `select` option and listing all the fields you need to retrieve as an array.

{% code lineNumbers="true" %}
```ruby
client = Monday::Client.new(token: <AUTH_TOKEN>)

args = {
  board_id: 123,
  item_id: 1234,
  column_id: "status",
  value: "Triage"
}
select = %w[id name email]

response =  client.change_simple_column_value(args: args, select: select)

puts response.body
```
{% endcode %}

You can find the list of all the available fields for items [here](https://developer.monday.com/api-reference/docs/items#fields).

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
monday_ruby-0.6.2 docs/resources/column/change_simple_column_value.md
monday_ruby-0.6.1 docs/resources/column/change_simple_column_value.md
monday_ruby-0.6.0 docs/resources/column/change_simple_column_value.md
monday_ruby-0.4.0 docs/resources/column/change_simple_column_value.md
monday_ruby-0.3.0 docs/resources/column/change_simple_column_value.md
monday_ruby-0.2.0 docs/resources/column/change_simple_column_value.md