"Unauthorized" error when trying to update disabled enum_option



I’m trying to:
curl -X PUT “Authorization: Bearer "
–data-urlencode “enabled:true”

But getting a “Not Authorized” error.
I’ve successfully created enum options via the api, but would like to be able to update them as well :slight_smile:


This is the correct snippet:

curl -X PUT "Authorization: Bearer _token_" \
--data-urlencode "enabled:true


Hi @Iris_Bune,

I was able to reproduce your error using your syntax.

I got it to work using the following:

curl --request PUT -H "Authorization: Bearer [token]" https://app.asana.com/api/1.0/enum_options/744492733163279 --data-urlencode "enabled=true"


Thanks a lot @Phil_Seeman! I got the error initially via a ruby gem, and then tried the endpoint via curl (gotta love syntax errors :slight_smile:).
At least that works so will try again via that gem and see if I can find out why that didn’t work.