Important Update: Community URLs redirect issues are partially resolved. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Create and Link Attachment to Record via REST API

AzmathullahKhan
Contributor III

We are using Archer 6.2P5 version.

We are looking for sample Java code to call the REST API to attach the and update/link it to the record id. 

3 REPLIES 3

DavidPetty
Archer Employee
Archer Employee

Azmathullah Khan M B‌, are you talking about JAVA or JavaScript?  Either, you'd write the code that would get data from an external source.  For instance in JavaScript you can invoke XMLHttpRequest() [AJAX The XMLHttpRequest Object] or .ajax [https://api.jquery.com/category/ajax/].

 

Then decide which REST API calls you want to use after you generate a session token, RSA Archer 6.2 Platform Patch 1 REST API Reference.  

 

For coding examples you can search the following community, https://community.rsa.com/community/products/archer-grc/archer-customer-partner-community/api-users 

 Advisory Consultant

AzmathullahKhan
Contributor III

Hi David.. It is Core Java.

I got the code to upload single/multiple attachement via REST API.

But I am still looking for sample code to link to the record. I could not find the User community.

Take a look at Jeff Letterman‌ post here on how to update a record with uploaded attachments, https://community.rsa.com/thread/189861#comment-884821 

 

Then you'd use /api/core/content to update (PUT) the record, https://community.rsa.com/docs/DOC-102092 

 Advisory Consultant