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

Asset Rest API, updating an object

Oliver Wood March 28, 2024

Looking at the api it appears that its impossible to do a update on specific attributes,

It appears that the only option is to send the whole object each time with all the attribute data.

Is there any concept of a patch method where i can just send attributes that have changed rather than everything.

It seems like a pretty standard method to support.

 

1 answer

1 accepted

0 votes
Answer accepted
David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2024

Hello @Oliver Wood 

You didn't say which specific Asset REST API endpoint you are referring to, or the method you are using with it.

Can I take a wild guess and assume you're talking about the Put object endpoint? If so, then no, you can't update / patch specific attributes of an object if they have changed, you must over-write the whole object and all the attributes.

If you search the Jira Service Management feature requests for 'update asset' you will find all the requests to add that functionality.

Oliver Wood April 1, 2024

Thanks David for confirming this

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