Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,753
Community Members
 
Community Events
168
Community Groups

Updating Insight from an API Post

Edited

Hi there,

I was trying to see how to update objects in Insight via API.. with the grand idea of pushing data from another system.

I can connect to insight and 'Get' all the objects from within an object type, but the post is eluding me.

 

I am using this;

https://api.atlassian.com/jsm/insight/workspace/<Workspace ID normally here>/v1/objecttype/147


{
"objectTypeId":"27",
"attributes":[
{
"objectTypeAttributeId":"111",
"objectAttributeValues":[
{
"value":"SLS"
}
]
}
]
}

then I am getting confused about what to put in the body.

Is this updating the object type I think (which is failing anyway 405 Method Not Allowed) but I want to be able to update a particular Object within an object type, i.e the team name attribute for a specific team sitting within the Teams object type.

I can't see how to actually reference a particular object to update?

I am just testing this with Postman

1 answer

Never mind, I had objecttype as opposed to object in the command.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
Community showcase
Published in Jira Service Management

An unofficial way to monitor a JSM mail handler for errors

...eturns true if any content is returned for the webResponse.body.data.first s...

650 views 3 19
Read article

Atlassian Community Events