programmatically adding a project to a hub and inviting contributors to it

programmatically adding a project to a hub and inviting contributors to it

Anonymous
Not applicable
395 Views
2 Replies
Message 1 of 3

programmatically adding a project to a hub and inviting contributors to it

Anonymous
Not applicable

Hi,

I have a hub in Autodesk and I am the administrator of it.

I am successfully using the forge Nuget library to do the following (windows, C#, Server-side):

  1. Authenticate
  2. List my hubs
  3. List the projects in a hub
  4. Upload a file to a project in the hub

I am still having problems with:

  1. Programmatically creating a new project in the hub
  2. Inviting viewers to the project

However, using the https://jerusalem2.autodesk360.com viewer – I can create new projects and invite people to it.

I looked through the API documentation and found the following capabilities:

  1. Create a project: https://developer.autodesk.com/en/docs/bim360/v1/reference/http/projects-POST/

But the documentation says I need an account_id. I don't have one and I don't know where to get it from

  1. Invite people to a project: https://developer.autodesk.com/en/docs/bim360/v1/reference/http/users-POST/

Again – account_id needed

What am I missing?

I know that the forge nugget is in beta, and I am willing to use the CURL solution in the documentation, but still – account_id – I don't have it?

 

Thanks,

Yoni

0 Likes
396 Views
2 Replies
Replies (2)
Message 2 of 3

augusto.goncalves
Alumni
Alumni

Hi Yoni,

 

The Account ID is shown when you authorize an app integration, but don't worry, you can get it through the BIM 360 Docs HUB ID, just remove the b. at the beginning of it. For instance, if your BIM 360 Docs Hub ID is b.1234, then your Account ID is 1234

 

We actively monitor Stackoverflow for questions, please use it instead of this forum: http://stackoverflow.com/questions/tagged/autodesk-bim360

 

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 3 of 3

mikako_harada
Community Manager
Community Manager

Hi Yoni, 

 

Re. finding account ID:  

 

https://fieldofviewblog.wordpress.com/2016/07/26/bim-360-account-id-where-can-i-find-it/ 

 

It's probably not in the SDK.  But it's a basic REST call. 

 

As to functionality, you can create a project.  You can add users.  but you cannot invite users to Docs, which is a function in Docs side. 

You can invite to Glue, which has this functionality.  

 

https://fieldofviewblog.wordpress.com/2015/07/02/creating-users-with-glue-api/  

 

 


Mikako Harada
Developer Technical Services
0 Likes