Sha256: 7d7a137abaaf3c4fa988db8669b56bb7055f1c9c4641707b49c377fefdefd9fb

Contents?: true

Size: 1.82 KB

Versions: 6

Compression:

Stored size: 1.82 KB

Contents

# #change\_column\_metadata

The `change_column_metadata` mutation will allow you to update the metadata of a column.

### Basic usage

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

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

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

args = {
  board_id: 123,
  column_id: "status",
  column_property: "description",
  value: "Updated status column description"
}
response = client.change_column_metadata(args: args)

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

This will update the description for the `status` column on `123` board to "Updated status column description".

This will return the columns' ID, title and description fields by default.

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

{% code lineNumbers="true" %}
```json
{
  "data": {
    "change_column_metadata": {
      "id": "status",
      "title": "New Work Status",
      "description": "Updated status column description"
    }
  },
  "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,
  column_id: "status",
  column_property: "description",
  value: "Updated status column description"
}
select = %w[id archived width settings_str]

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

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

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