The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events