Cannot Create Tag with API


#1

When I try to create a Tag using API, I get successful response. However, the Tag is not visible on UI. Even if i perform Get by ID immediately, I get 404

{
“errors”: [
{
“message”: “tag: Not a recognized ID: 321517827073100”,
“help”: “For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors
}
]
}


#2

Hey @Amar_Nevagi,

That’s odd; I was just able to test creating and GETting a tag by ID, and it worked fine for me. What comes back from the request when it appears to be successful?

Another thing I noticed when investigating is that object ID isn’t associated with anything in our database, tag or otherwise. Is that an ID you got back from Asana for a tag you tried to create?

One other thing worth noting is that you won’t see the tag in the UI until you tag a task with it, e.g. with addTag in the API using the ID of the newly created tag. This is for a number of reasons that are fairly internal to how tags are implemented, but it is something that causes some confusion.