GraphQL API: Hide columns (& general defaults)

Hi,

I read through this post relating to hiding a column as part of an API mutation.

Following the instructions, I couldn’t see any way to hide a column in its settings_str or defaults argument, or to change its color.

Example request:

query {
    boards (ids: 12345678) {
        columns {
            title
            type
            settings_str
        }  
    }
}

The response when I have manually changed the column colour:

{
    "data": {
        "boards": [
            {
                "columns": [
                    {
                        "title": "Test col",
                        "type": "boolean",
                        "settings_str": "{\"color\":\"#e2445c\"}"
                    }
                ]
            }
        ]
    }
}

(The ‘visible’ setting appears to never be present in the settings_str)

Setting a ‘defaults’ parameter like the below as per the documentation in a create_columns request does not seem to apply the setting. I also can’t find a way to hide a column:

mutation createColumns {
    create_column(board_id: 123456789, title: "Test col 1", column_type: checkbox, defaults: "{\"color\":\"#e2445c\"}") {
        id
        title
        description
    }
}

Is there any way to apply color/visibility settings to a column as part of the create_columns mutation?

Hello @Chris_Uplifter and welcome to the community!

You can not hide a column using the API.

I recommend avoiding using the “defaults” parameter as it is under revision at the moment.