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: 

API Document_reference usage

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
827 Views, 2 Replies

API Document_reference usage

Anonymous
Not applicable

Hi 

 

I am trying to link already uploaded documents in BIM 360 to Equipments within a model. I believe document_reference can be used to achieve the same, reading through the documentation, I understand that it needs document reference unique ID and document_id (GUID) as part of the document reference hash which is passed as parameter to the API.

 

My question is how to get this detail from BIM 360, is there an API which lists existing documents with its internal details like unique ID and GUID etc. ?

 

Please help.

 

Thanks

Sandeep

0 Likes

API Document_reference usage

Hi 

 

I am trying to link already uploaded documents in BIM 360 to Equipments within a model. I believe document_reference can be used to achieve the same, reading through the documentation, I understand that it needs document reference unique ID and document_id (GUID) as part of the document reference hash which is passed as parameter to the API.

 

My question is how to get this detail from BIM 360, is there an API which lists existing documents with its internal details like unique ID and GUID etc. ?

 

Please help.

 

Thanks

Sandeep

2 REPLIES 2
Message 2 of 3
mikako_harada
in reply to: Anonymous

mikako_harada
Community Manager
Community Manager
Accepted solution

Hi Sandeep, 

 

could you try like: 

 

POST /api/document_references


ticket=xxxx&
project_id=d80067a3-97ce-1f34-a4be-02cc3afa57bd&
document_reference=
{
"id":"d629b2fe-ab4b-11e3-2828-027465b920a7",
"document_id":"db102d99-97ce-11e2-a4be-02cc3afa57bd",
"container_id":"256D2E06-C8B2-4185-12a4-8BD38E349E15",
"container_type":"Equipment"
}

 

(linebreaks are added for readability.) 

 

where

id - unique ID. if you are using .NET, you can use Guid.NewGuid to tgenerate new one. 

document_id - id of a document.  you can use api/library/all_files.

container_id - id of equipment. you can use api/get_equipment. 


Mikako Harada
Developer Technical Services

Hi Sandeep, 

 

could you try like: 

 

POST /api/document_references


ticket=xxxx&
project_id=d80067a3-97ce-1f34-a4be-02cc3afa57bd&
document_reference=
{
"id":"d629b2fe-ab4b-11e3-2828-027465b920a7",
"document_id":"db102d99-97ce-11e2-a4be-02cc3afa57bd",
"container_id":"256D2E06-C8B2-4185-12a4-8BD38E349E15",
"container_type":"Equipment"
}

 

(linebreaks are added for readability.) 

 

where

id - unique ID. if you are using .NET, you can use Guid.NewGuid to tgenerate new one. 

document_id - id of a document.  you can use api/library/all_files.

container_id - id of equipment. you can use api/get_equipment. 


Mikako Harada
Developer Technical Services
Message 3 of 3
Anonymous
in reply to: mikako_harada

Anonymous
Not applicable

Thanks Mikako, I have now finally got the API to work, we are now able to link Equipments with Documents.

 

Thanks for all your help.

 

Sandeep

0 Likes

Thanks Mikako, I have now finally got the API to work, we are now able to link Equipments with Documents.

 

Thanks for all your help.

 

Sandeep

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

Post to forums  

Autodesk Design & Make Report