Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

trying to read attachment over api v1

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
sten
460 Views, 5 Replies

trying to read attachment over api v1

 

How is it exactly that I read an attachment over the v1 API.

 

I can get all the workspace and attachment info, but where do I get the actual file.

 

Thanks

 

5 REPLIES 5
Message 2 of 6
michelle.stone
in reply to: sten

Hopefully someone else can weigh in, but in the meantime, have you checked out DV1518: Programming Autodesk PLM 360 Using REST?  It's a class from Autodesk University 2013.  Pages 3 - 4 of the handout goes over how to create, download, and checkin files (though is appears this is with v2, not v1).

I'll try to get more info (or someone to weigh in here!) if it's possible with v1.

 

Thanks,

Michelle



Michelle Stone
Technical Marketing, PDM & PLM
Autodesk, Inc.
Message 3 of 6
sten
in reply to: michelle.stone

Yes I already saw that one, but as you said it is v2. Not sure how I apply that to v1.

I looked through the .../application.wadl and tried a few with no luck:

.../api/rest/workspaces/{workspaceId}/items/{itemId}/files/{fileId}
Just give me a JSON of fields

I would like to try out:
.../api/rest/v1/profiles/{profile:\w+}/workspaces/{id:[0-9]*}/items/{dmsID:[0-9]*}/attachments/{fileID:[0-9]*}
but I have no idea what the {profile:\w+} argument is.

It would be a big help if someone could just point me to the right "GET" path.
Message 4 of 6
igor.cunko
in reply to: sten

you need to send in httpe header Accept: application/octet-stream

URL is same as for attachement metadata 

 

api/rest/v1/workspaces/{id}/items/{dmsID}/attachments/{fileID}


Igor Cunko
Java Architect Cloud Solutions, PDG-CP-PLM
Message 5 of 6
michelle.stone
in reply to: igor.cunko

Thanks for weighing in Igor!

Sten - let us know if you need more help.  There's a support case open for you as well (case #10269311)

 

Michelle



Michelle Stone
Technical Marketing, PDM & PLM
Autodesk, Inc.
Message 6 of 6
sten
in reply to: igor.cunko

Perfect.

Was able to pull down a PDF file using python/response.

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

Post to forums  

Autodesk Design & Make Report