I used to be able to change the project color using the API, but this API request no longer works. Instead, it returns a 500.
The request that used to work:
PUT https://app.asana.com/api/1.0/projects/1127755750165821
Body:
{
"data": {
"color": "dark-green"
}
}
Response
{
"errors": [
{
"message": "Oops! An unexpected error occurred while processing this request. The input may have contained something the server did not know how to handle. For more help, please contact api-support@asana.com and include the error phrase from this response.",
"phrase": "33 clumsy lambs krump slowly"
}
]
}
What’s strange is if I try to update the color to green
, I get a 400 with the following message:
{
"errors": [
{
"message": "color: Must be one of {dark-blue, dark-brown, dark-green, dark-orange, dark-pink, dark-purple, dark-red, dark-teal, dark-warm-gray, light-blue, light-green, light-orange, light-pink, light-purple, light-red, light-teal, light-warm-gray, light-yellow, none}, not: green",
"help": "For more information on API status codes and how to handle them, read the docs on errors: https://developers.asana.com/docs/errors"
}
]
}
This is saying that dark-green
is a valid option…