Hi, I have been struggling with this API, it could just be me but I don’t find the docs very useful.
I find the use of $ in variables names (within the examples) odd (in python context) and am not sure if they have any significance, I removed them and got different errors so I’m guessing they have.
I am attempting to get particular dashboard columns updated. This was the attempt (I cant see anything to mark text as code so apologies if this isn’t formatted as expected.
I have used their python examples and in general the API docs and it works. The below snippet is from a code that I have tested. You can replace the board id ‘1111111’ with yours and other column ids.
Aarr thank you for the response Shilpa, I was, of course, passing in strings as a value to the key. Looking at your example they are clearly dictionaries of various key:value pairs. Is there a reference to these anywhere? So I can see what each key type is expecting?
How do you know what goes in that middle field? Status is of type “color”. Why is this “label” in this instance?
And for the life of me I can’t figure out a “numeric” field. I’ve tried “label”, “numeric”, “text”… and with quotes on the number value or without. No combination of values seems to work.
For a numeric example, if the column id is “numbers” and value is 3 you would have to format as below.
‘columnVals’ : json.dumps({
‘status’ : {‘label’ : ‘Done’},
‘date4’ : {‘date’ : ‘1993-08-27’}
‘numbers’: “3”
})
Hey @Shilpa - thanks so much for providing awesome answers here throughout the thread, I really appreciate it! So helpful
@jrainesHMRI I am sorry to hear you feel that way about our API docs, and I’d love to see if @Shilpa 's suggestions were able to provide a helpful pointer in this case. Would you be able to review and let us know if that helps?
To shed more light on this, the Status column uses both labels and index as value keys. Labels allow you to use plain text to populate the data, like using “Done” to set the Status column to a Green Status label, while Indexes would be based on Color. You can find the colors by index deck here: