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

Updating Insight from an API Post

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 8, 2022

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

0 votes
Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 8, 2022

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
AUG Leaders

Atlassian Community Events