"Unauthorized" error when trying to update disabled enum_option

I’m trying to:
curl -X PUT “Authorization: Bearer ”
https://app.asana.com/api/1.0/enum_options/<enum_optoin_id>"
–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_" \
"https://app.asana.com/api/1.0/enum_options/980055352390438"\
--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"

3 Likes

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.