Using BIM 360 Docs API Is there any way to create project with existing project settings? - autodesk-forge

In the BIM360 docs account, our requirement is to create a project using API with existing project settings. i.e suppose we have already one project exists in which we have created all custom attributes for issues in a project admin and set some permission. We want to create all these attributes automatically while we create a new project, using this existed project.

Yes, you can create new BIM 360 projects from a template project. If you check the sample setup tool at https://github.com/Autodesk-Forge/forge-bim360.project.setup.tool, you can see that it provides the feature to create a new project by copying the folder structure and folder permission from a template project, but you can't setup the custom attributes automatically at this moment because the API to create custom attribute is not available yet.
If you are interested in the new Custom Attributes API, please check it here, be noted defining a custom attribute API is still working in progress.
Hope it answers your question.

Related

BIM 360 Project Creation, Template Duplicate Folders (Update Request)

Related to this 2-year-old question: BIM 360 Project creation template
Is there still not a way to replicate the Web UI option "Activate Document Management" -> "Apply a project template" that duplicates folder structure and role-based permissions?
Specifically, I'm looking at requests to create a project
POST projects https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-POST/ supplying a template_project_id value
and then activate with
POST users/import v2 https://forge.autodesk.com/en/docs/bim360/v1/reference/http/projects-project_id-users-import-POST/
I don't see any other template input in the API documentation besides the first request, and that does not appear to bring folder structure along.
unfortunately, what you found is correct currently, creating a project from a template with folder structure and role permission is not supported with current API, but you can achieve that by yourself as shown in a sample project at https://github.com/Autodesk-Forge/forge-bim360.project.setup.tool.
This is actually a high requested wish HQ-5023 as you can see at https://fieldofviewblog.wordpress.com/2019/06/15/bim-360-acc-api-known-issues-and-wishes/#more-4424 , our engineering is actively working on that, we will update you at our blog if any progress.
Based on reading the documentation, and running some tests, this appears to be unavailable still. I would very much like to be proven incorrect by someone at Autodesk! Thanks.

Autodesk-Forge Publish multiple models to BIM 360 using the Data Management API

I am trying to create a postman set of collections that will be able to publish all the models in our companies directory everyday without having to publish each of them manually. So far I have been able to extract the project id and item id of each of the project models and publish it but haven't been able to provide a list of project ids to the json body.
I would start with this demo code. https://forge.autodesk.com/blog/custom-bim-360-search-elasticsearch
It does about 80% of what you need. If attaches a webhook and listens for new files added to your BIM360 projects. On change, it downloads and indexes meta-data files. You could use the same mechanism to get the project id and ItemId and trigger the publish API.
Does that help?

Delete project using BIM360 API

I have created a project using
https://developer.api.autodesk.com/hq/v1/accounts/:account_id/projects
and activate it.
Is there any option to DELETE the created project?
I have already seen that archiving via Patch is available.
Thank you!
According to the REST API design style, The HTTP method for deleting something will implement via DELETE. Unfortunately, it's not available in BIM360 HQ API currently.

How do you add custom fields and website fields in the new Directory API?

In the Profiles Data API you could add custom fields via gContact:userDefinedField. You can also create website links (via gContact:website) which would display as clickable links in the Contacts Web UI.
My question is how do you create custom fields and website fields for User resources in the new Directory API?
Extensible schema isn't available yet but is coming according to the Admin SDK announcement I/O Session. See the video at:
http://www.youtube.com/watch?v=v5jgUimpFnw&t=16m35s

Login, create folder and upload file to Box account as service account

I reviewed the Box authentication documentation as well as the other StackOverflow questions but I'm still unable to find definite answer.
My client is an enterprise Box client and would like to build a company's internal web application that would login into Box.com using service/admin account and create folder and upload a file. The uploaded folder will be available to specific customer that will login into Box and upload additional files.
I created a sequence diagram to depict the same.
Would you let me know if this is a supported Box authentication model? Can the Box 2.0 Beta API Token be used to login as service account and create file/folder/share?
Thanks for your help!
There are several options that could work for you. Let me suggest the simplest one first, and if that is not sufficient, then I can suggest other ways to accomplish your goal.
You can use the regular Box authentication for your solution. To do so, simply get an API key and an auth-token for your application. Then, after you have uploaded your file, use the V2 API to create a shared link for your file. You can email that shared link to the client, and they can use the link to access the file.
there has been new developments since this question was posted, and now it's possible to use JWT (JSON Web Token) and Box Developers Edition to access Box.
If you create a developer account you will be able to create App users and login using an enterprise id and a private key file. Check out the docs for more information: Box Developer Edition
Additonally, boxsdk comes with support for Box Developer Edition