Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Insight object via rest api

Tanel Käomets July 20, 2022

I am stuck trying to change Inisght object attribute values via REST API. The code i am using right now:

image.png

Response status is 200, but no changes have been made to Insight object, everything remains same.

If I am trying to update the value in Automation it works fine.image.png

What could be the solution to get this working?

 

1 answer

0 votes
Jeroen Poismans
Community Champion
July 21, 2022

Hello,

I think there is still an error in your URL, for example I don't see the objectTypeId an Id parameters in the URL.

Have a look at the documentation:
https://developer.atlassian.com/cloud/insight/rest/api-group-objecttypeattribute/#api-objecttypeattribute-objecttypeid-id-put

 

Regards,

Jeroen

Tanel Käomets July 21, 2022

ObjectTypeID is not needed.

The whole reason why it did not work is because from .body onwords the {} brackets have to be replaced with [], after that the code works fine.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events