Welcome to the Jazz Community Forum
Add link to DM Resource using DM java API

I am using DM client to fetch model from Rational design manager. I need to add DNG artifact link to the existing model using DM java API. Is there any way to do it.
I tried the following, but the link is not getting updated.
I tried the following, but the link is not getting updated.
DmConfiguration configuration = client.getDefaultConfiguration(project);
String uri = "https://example.com:9443/dm/models/246";
DmResource resource = client.getResource(uri, configuration);
if( resource != null ) {
resource.setResourceProperty("j.1:satisfy", "https://example.com:9443/rm/
resources/_Mx3j4ThDEeaLPOX_i9ti8Q");
DmEditingSession editingSession = client.createEditingSession(configuration);
client.putResource(resource, editingSession);
client.commitEditingSession(editingSession);}