Update asset object using the rest api

Steven Vits
Contributor
June 20, 2024

I'm trying to create an automation that updates an asset object.

Using the rest API was mentioned on this page somewhere.

using postman to test to. 

https://api.atlassian.com/jsm/assets/workspace/v1/object/{{ObjectList.key}}

with the next payload:

{ "attributes": [ { "id": "76270", "objectAttributeValues": [ { "Value": "8" } ] } ] }

I do get an '200 ok' response but the object is not updated.

Does anyone can inspire me please?

1 answer

1 accepted

1 vote
Answer accepted
Steven Vits
Contributor
June 21, 2024

{
"attributes": [
{
"objectTypeAttributeId": "48",
"objectAttributeValues": [
{
"value": "8"
}
]
}
],
"objectTypeId": "37"
}

seems to be the correct payload

reference: The Assets REST API (atlassian.com)

Suggest an answer

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

Atlassian Community Events