Get CAD file with REST API
Hi, I try to read my CAD file with REST API like localhost/.../CAD , it return like below. { "@odata.context": "">localhost/.../$metadata, "value": [ { "authoring_tool": "SolidWorks", "classification": "Mechanical/Part", "created_on": "2018-06-13T02:45:26", "description": "First CAD Docment", "generation": "1", "has_change_pending": "0", "id": "1260956E892E4879B93D6F64F8B683CC", "is_current": "1", "is_released": "0", "is_standard": "0", "is_template": "0", "keyed_name": "CAD01", "major_rev": "A", "modified_on": "2018-06-13T02:45:26", "name": "CAD01", "new_version": "1", "not_lockable": "0", "state": "Preliminary", "item_number": "CAD01" } ] } But i can't able to fetch the CAD file. How can i resolve this issue? Thanks & Regards, Sathishkumar C.22KViews0likes6CommentsARAS RESTful API: How do I get a list of all generations for a part?
I'm attempting to get a full part history (14 generations worth) of a part. I know the config_id is a value shared between all 14 parts; however, I can't seem to construct the REST call to return all 14 records using the config_id. I get the config_id with ... GET {base url}/Part('<id>')/config_id/id/$value Then I tried using the config_id in a filter like this ... GET {base url}/Part?$config_id eq '<config_id>' That just returned one part record, the latest one. Using the config_id is what I would have done using an AML query, but is there another way with the REST API? I'm running Aras Innovator 11.0 SP12Solved12KViews1like7CommentsUpload file Rest API using Logic App
I am currently developing a sample project in Azure Logic Apps using the Aras Restful APIs. However while trying to Execute the vault.UploadFile API I am facing the 500 error message: The Rest API Call Details are as follows : { "uri": ".../vault.UploadFile?fileId=EB166A9FF4EE47C8A0DA55252CA140CA", "method": "POST", "headers": { "Authorization": "*sanitized*", "Content-Disposition": "attachment;filename*=utf-8''Hello.txt", "Content-Length": "5", "Content-Range": "bytes 0-4/5", "Content-Type": "application/octet-stream", "transactionid": "0c2c787fce70226029d752c0ba372607" }, "body": "Hello" } For now I am trying to upload a simple text file as seen above. I have verified the url as well as run the same in Postman , ARC and fiddler - and I am able to get it working in all the cases except for via Logic Apps . Please let me know if anyone knows what I am missing here . Thanks9.2KViews1like4CommentsOAuth - How to use Grant Type "Authorization Code" for token generation
Hi everyone, I recently read this excellent blog post about token authentication using the REST API for Innovator, and in it Christopher Gillis says that ' urrently, I believe "password" is the only authentication type allows [sic]. Aras as a whole is moving towards more types of authentication in 12.0, so this is likely to change in the upcoming releases.' With 12.0 released, I see that OAuthServer\OAuth.config now defines two allowedGrantTypes for the clientRegistry with ID "IOMApp": 'password' - the one that I have been using in my code when generating OAuth tokens for Innovator so far - but also 'authorization_code'. Hence, I was wondering if anyone knows a practical way yet to generate the access token with that grant type, instead of using "password"? Thanks a lot in advance for any info on this subject. Cheers, C8.1KViews2likes2CommentsRest API - Pass parameters
I wanted to make this as broad a title as possible. I'm shocked I can't find anything on this. I don't want to use the ID. Seems everything is bound to ID. I just want to simply know, without use of ID, how a method can consume arguments? How to pass/use arguments? My particular use case is one to squash annoyance. I think many, if not all, Item Types should have Auto-Search set to true. I find it silly UX to go to, "Search 'Some Item Type'" and then need to click search. So, I'm finding I need to navigate to the IT definition and check the box and save the edit. I just want to use PostMan to pass an ItemType by name. I don't know how to do that or extrract that from the call. I want to pass the IT name. So, something like this for the IT "Method": {{base_url}}{{version}}/server/odata/method._Set_Auto_Search_True('method') But, how? Hmmm. Maybe a where clause somehow? .../odata/ItemType?$filter=name eq 'method' Anyway, any help passing other-than-id params to a function would be great!5.3KViews0likes3CommentsAras REST API - How do you navigate / create a BOM Structure using the REST API?
Hello Aras Community Members Does the ARAS REST API allow you to navigate the BOM structure, starting with a Part? For example, if I have a BOM structure as shown below, I would like to start with any Part in the structure and navigate down the BOM tree. Can anyone share the REST API endpoint for making this work, or point to a specific section in the API guide? Part A - Part A1 - Part A2 --- Part A21 --- Part A22 ------Part A221 Second question: Does the REST API allow users to create a BOM structure, e.g. a BOM tree as above? Third question: Does the REST API allow users to update the BOM structure?Solved5.2KViews0likes2CommentsODATA RESTful API
Hi, I'm currently reading RESTful API document and I'm getting stuck rather quick. host:port/.../Products That's the example used in the document. But if I install a clean aras 11 SP12, what would the url be, because there's no *.svc file located in any folder of the installation. Also, the documentation mentions: http://host/odata/Part but so far I only get IIS errors, what does host stand for, localhost/InnovatorServer , localhost/InnovatorServer/Server , I can't seem to find the correct one. Also, how would I go about logging in with a user, that part seems to be missing as well. I can see an OAuthServer running in IIS, but I can't find anything about that in the documentation. regards, MB4.8KViews0likes2CommentsREST API curl from cmd line - what could be wrong in this POST request?
Hi Community, I try to do a couple of REST API calls via Windows Batch jobs. I successfully can call for a token and read data. But I somehow fail to build a simple POST action to add any kind of item. Currently I try to add e.g. an user with this batch call: curl --insecure -v ^ -X POST 172.xx.xx.xxx/.../User ^ -H "Content-Type: application/json" ^ -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZC......" ^ -d '{"login_name":"testuser","first_name":"Steve"}' This one will lead to the following error message in cmd: {"error":{"code":"InternalError","message":"Object reference not set to an instance of an object."}}* I actually use a similar POST Method for getting the token - which works without problems. Has anyone an idea why this one fails? Do I miss some additional header? Best regards! AngelaSolved4.8KViews0likes1CommentHow to return JSON from a odata method
Hi, I created a a serveur method named COCO_MONITORING returning a JSON like this var innovator = this.getInnovator(); var output= new Newtonsoft.Json.Linq.JObject(); .... return innovator.newResult(output.ToString(Newtonsoft.Json.Formatting.None)); I'm able to call it in odata like this: https://serveur/1Z62innovator/server/odata/method.COCO_MONITORING My problem is that the output of the web service is a text/plain containing the json as a text. I would like to have directly the json (application/json). How can I do that ?3.9KViews0likes3CommentsAras Feature Keys - REST API?
Activating features is covered on page 61/74 in this guide: https://www.aras.com/-/media/files/documentation/installation-and-configuration/en/12-0/aras-innovator-120--installation-guide.ashx That's so clicky I can't help but think there has to be a better way. Why do I need this? Well, as a developer I need to replicate, locally, what is our prod env as a starting point to work. It already has lots of layers and Minerva add-ons, and 3rd party contractor work. One part of setup is adding a stack of keys that all have: Feature Name and Activation Key (and unused expiration date). From the v12 install guide you can do this, one at a time: As a developer/QA/exterminator in this environment that I need to replicate this is a real pain doing this 12 times before moving on. And, while I'm needing to do this on v11 and the navigation to the Activate Feature is different, I'm guessing it writes to the same bucket? I've managed to use REST API to add Users and Identities, and I think I can pretty much tack-on the singular label of any ItemType and write to the system. What I want is concise repeatable setup (especially because the possible variants on just one ItemType, such as User are astronomical). I'm consuming CSVs and the singular item type, and with Bearer Token I can reliably produce setup for these two things. Anyway, is there an endpoint for "Activate Feature"? I can see that it uses a post to aras.com service, but is there a way todo that in a scripted way for automation setup? https://www.aras.com/productservices/FeatureLicenseService/FeatureLicenseService.svc3.8KViews0likes2Comments