I’m actually trying to create a task with ASANA api with personal access token.
I use Boomerang (chrome-extension) for my test.
With POST :
Endpoint URL : https://app.asana.com/api/1.0/tasks
My header : Authorization: Bearer accessToken
and my body JSON
{
“data” : {
“name” : “name of the task”,
“workspace” : 01234567891234,
“projects” : 98765432112456
}
}
but I systematically get an error 401. (I changed the id of workspace and projects)
Hey @Thomas_Delattre, it’s possible to get other authorization errors, for instance that you have access to your Asana workspace (so can access /users/me), but not that particular project. “Private” projects and projects that are “Private to members” where you are not the owner / a member of the project would send back 401 when you try to access them.
Hmm. That project looks fine, and I see you’re the owner, so you should have access. However, when I go to see if you have any personal access tokens, I don’t see any associated with your account. Could you double check in your account apps settings page and clicking on “Manage developer apps” that you have a personal access token listed (screenshot below)? Could you try to do your POST request if you get a new token on that page and use it instead?
Dunno if working tokens are forbidden, but just in case, the one included in the collection looks totally made for testing purposes… unless you really think someones it´s using the Microsoft workspace…
{“data”:[{“id”:177987220357060,“name”:“Microsoft”},{“id”:498346170860,“name”:“Personal Projects”}]}