paultaylor encountered a persistent Error 500 when trying to create a category via API using curl and Java, despite having valid API credentials and successfully creating users. bartv noticed a typo in the curl command: text_color==0xbbbbbb should be text_color=0xbbbbbb. After fixing this, curl worked, but the Java issue remained unresolved. bartv noted the lack of Java code details and inability to assist with Java-specific issues. paultaylor confirmed the API works as expected and shifted focus to debugging their Java code. They also asked two follow-up questions: (1) whether additional fields like category description can be passed during category creation (not documented), and (2) whether there are standard conventions for choosing color and text_color values. Eventually, paultaylor resolved the Java issue: they were incorrectly passing color values with a 0x prefix (e.g., 0x24aae2) instead of the plain hex string (24aae2). The issue was a formatting error in the JSON payload, not an API limitation.
Right thankyou, okay that fixes curl, unfortunately that works but doesnt explain Java issue, I was only using curl to try and work out what the Java issue was.
You didn’t explain what you’re doing in Java, so that’s impossible to answer.. (also, I don’t know Java so I wouldn’t be able to help you with that anyway, sorry )
That is true, well Im trying to do the same thing as curl, now at least I know the api does work as expected I will look at my code again to see if silly error in there.
I do have a couple if questions about the categories api though that you may be able to help with:
Are there extra fields not shown in the api docs you can pass to the api when you create categories (such as category description) or not ?
2, what are sensible values for color and text-color, is there some kind of defacto standard for assigning colors to different types of categories ?