Skip to main content

I am looking to create a board with predefined columns via API. Is it possible to create a button column via API?


thanks in advance

Hi @wisnewski.robert,


Welcome to the community! 😃


I recommend checking out our column types reference to see which columns our API supports. Specifically in regards to the button column, you can only read it via the API.


Let us know if you have any other questions!


Best,

Rachel


I was able to do it with this query after posting the message :


mutation {

create_column(

board_id: 1626997685

title: “Sample Button”

description: “This is a sample button column”

column_type: button

id: “sample_button_column4”

defaults: “{"label":"this is a sample label","text":"this is a sample text","color":"#00FF00"}”

) {

id

title

description

settings_str

}

}


However the defaults field isn’t taken into account.


So 2 follow up questions :



  • is creating a button column an official feature that will be maintained?

  • if so, what do I include in defaults to set the name of the button + color?


r



  • Sent from my mobile device


Hello there @wisnewski.robert,


When you mention the name of the button, are you referring to the text inside the actual button?


Looking forward to hearing from you!


Cheers,

Matias


Hi Matias,

Yea instead of it saying “Click Here” I want it to say “Start” or “Stop” or “Pause” or whatever with an emoji. Additionally instead of it being the standard blue I need each button to be a different color. For example start should be green, stop red etc etc.


Hello again @wisnewski.robert,


Thank you for that clarification.


As of today, it is not possible to create a button column with a custom text for each button or a custom color. It is also not possible to change those values for an existing column.


Let me know if you have any other questions!


Cheers,

Matias


Reply