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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Unable to update Insight Object through the Insight Server REST API

Hi,

I want to update an object through the REST API. The URL I'm using for the Request is

https://$jira/rest/insight/1.0/object/$objectid

Get on this works - I get the object back. Now according to the documentation for the Insight Server https://insight-javadoc.riada.io/insight-javadoc-8.6/insight-rest/# , I should also be able to use a Put on this URL, however it does not work and instead just gives me a 404 Not found.

 

Anybody know what to do?

2 answers

1 accepted

0 votes
Answer accepted

Solution found: You need to add charset=utf-8 to your Headers when sending the Put. 

0 votes
Robert Wen_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 14, 2022

Hello @Marcel Nasuti ! Welcome to the Atlassian Community!

You haven't told us if you added a JSON envelope with attributes and their new values.  Also, did you add ObjectType ID?

Thanks for the quick anwser - sorry, forgot to mention that, yes I did, looks like this: image.png

Robert Wen_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 14, 2022

The form looks correct.  At this point, I would double-check the following.

1. See if all of the IDs are correct.

2. You didn't mention what kind of attribute is tied to objectTypeAttributeId 10259055.  I'm just wondering if it's text or something that has it's own ID, like a global status.

Thanks for confirming that that looks ok - 

1) Double checked, the numbers are all correct

2)It's a simple text field.

But is the JSON Body really that relevant? Shouldn't the 404 not found be the result of the Insight Server for whatever reason not responding to the Put on the same URL it responds to the Get?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events