Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Insight REST API support for updating inbound/outbound references

Boswell, Richard March 10, 2022

Does the JSM Insight REST API support updating the inbound and outbound references of an object? I'm trying to ascertain whether it is possible to modify the Hypervisor reference for a Virtual Guest via the API but I can't find a straightforward method.

1 answer

1 accepted

4 votes
Answer accepted
Andrea
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 10, 2022

Hey @Boswell, Richard ,

Does the JSM Insight REST API support updating the inbound and outbound references of an object? 

Yes, you can do this by updating the reference attributes on the objects. I just tried this out using the PUT object API (https://developer.atlassian.com/cloud/insight/rest/api-group-object/#api-object-id-put).

To do this you'll need:

  • the attribute id of the outbound reference attribute on your object
  • the key(s) or ID(s) of the object to update
  • the key(s) or ID(s) of the new outbound reference

e.g. to update object "AB-123" to have an outbound reference to "CD-456" you'd call that PUT API with url

https://api.atlassian.com/jsm/insight/workspace/{yourworkspaceid}/v1/object/AB-123


with a body like

{
"attributes": [
{
"objectTypeAttributeId": "674",
"objectAttributeValues": [
{
"value": "CD-456"
}
]
}
]
}

To do this to update the "inbound reference" you'll need to update the attribute of the object you want to be a new inbound reference.

Boswell, Richard March 11, 2022

@Andrea, that worked perfectly! Thanks for the quick response.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events