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?
Solution found: You need to add charset=utf-8 to your Headers when sending the Put.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick anwser - sorry, forgot to mention that, yes I did, looks like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.