azrael
azrael

Reputation: 120

Cannot create bucket

I'm trying to create a bucket with the POST buckets endpoint. However, I cannot seem to do this: When attempting to do so with a Three-legged token, I receive the error:

"Only 2 legged service tokens are allowed to access this api."

But when I use a two-legged token (with the same scopes):

"Token does not have the privilege for this request."

What am I doing wrong? I'm using NodeJS with the Request library.

Upvotes: 0

Views: 609

Answers (1)

Jaime Rosales
Jaime Rosales

Reputation: 1288

You might want to check your Token have the correct scopes in this case you need bucket:create as part of your token scopes.

More about it here. https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/scopes/

Upvotes: 1

Related Questions