Hi OX hackers,
I would like to add categories (with colors) via a computer program. For this I investigated the HTTP API. As far as I understand the documentation there is not proper API for this. From debugging the webclient I learned that categories are set via "PUT /ajax/config/gui" containing a string such as {"categories":{"local":[{"color":5,"name":"Private"},{"color":2,"name":"Bu siness"}]}.
So my question is: Is calling the "PUT /ajax/config/gui" url the right place to add categories (with colors)? Is it sufficient to add just the categories string or must other content be provided in order to not change anything else?
Thanks for your feedback.
Best regards,
Thomas
I would like to add categories (with colors) via a computer program. For this I investigated the HTTP API. As far as I understand the documentation there is not proper API for this. From debugging the webclient I learned that categories are set via "PUT /ajax/config/gui" containing a string such as {"categories":{"local":[{"color":5,"name":"Private"},{"color":2,"name":"Bu siness"}]}.
So my question is: Is calling the "PUT /ajax/config/gui" url the right place to add categories (with colors)? Is it sufficient to add just the categories string or must other content be provided in order to not change anything else?
Thanks for your feedback.
Best regards,
Thomas
Comment