Community
BIM 360 API Forum
Welcome to Autodesk’s BIM 360 API Forums. Share your knowledge, ask questions, and explore popular BIM 360 API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ACC Docs error: Permission "['PUBLISH', 'VIEW', 'DOWNLOAD', 'COLLABORATE']" throws 400 error with POST projects/:project_id/folders/:folder_id/permissions:batch-create endpoint

1 REPLY 1
SOLVED
Reply
Message 1 of 2
JvBMov
378 Views, 1 Reply

ACC Docs error: Permission "['PUBLISH', 'VIEW', 'DOWNLOAD', 'COLLABORATE']" throws 400 error with POST projects/:project_id/folders/:folder_id/permissions:batch-create endpoint

When I apply the "View/Download+Upload" actions for a user:

JvBMov_0-1635497634365.png

at the endpoint https://forge.autodesk.com/en/docs/acc/v1/reference/http/document-management-projects-project_id-fol...

 

I get a 400 error:

 

 Error creating permissions 400, {"code":"ERR_BAD_INPUT","title":"The request has invalid header or body","detail":"Given actions PUBLISH,VIEW,DOWNLOAD,COLLABORATE is invalid"}

 

 

All other documented actions are working fine. Shuffeling the actions (for instance to : ['VIEW', 'DOWNLOAD', 'COLLABORATE', 'PUBLISH']) does not fix the problem. Is this a known bug? This applies to both template and regular projects.

1 REPLY 1
Message 2 of 2
mikako_harada
in reply to: JvBMov

There is a difference in acceptable parameter for Autodesk Docs.  There is a separate documentation:  

 

https://forge.autodesk.com/en/docs/acc/v1/overview/bim-360-compatibility/docs-compatibility/

equivalent one is:  

PUBLISH,VIEW,DOWNLOAD,COLLABORATE,PUBLISH_MARKUP

 

The documentation needs to be update. We will report to the documentation team and request to include add both parameter in one page with a clear tag BIM 360 vs. ACC. (so that we don't need to do "diff" every page.) 

 

Sorry about confusion. 


Mikako Harada
Developer Technical Services

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report