Skip to main content
Answer

Updating Asset type_field for associated assets

  • March 12, 2025
  • 2 replies
  • 43 views

Forum|alt.badge.img+1

Hello,

i have been trying to to update multiple assets via API.
The call im trying to make should update a type_field of all assets that are associated to an exisiting ticket, but i cant get it to work correctly. If I use a parser and want to parse the display IDs of all retrieved assets, it obviously runs into failure, because the URL contains the display ID of all assets im trying to update simultanouesly.

Does anybody have a good solution for this? I’m super new to API so I don’t have any idea how to bypass the problem with multiple display IDs.

Thanks in advance! 

Best answer by Philipp12

Funnily enough i managed to kind of get a workaround just now, which is not the prettiest, but works.
I broke the array of strings down into single strings for each display ID and made an api call for every single string.

 

2 replies

Forum|alt.badge.img+1
  • Author
  • Answer
  • March 12, 2025

Funnily enough i managed to kind of get a workaround just now, which is not the prettiest, but works.
I broke the array of strings down into single strings for each display ID and made an api call for every single string.

 


Roxwell
Top Contributor ⭐
Forum|alt.badge.img+9
  • Top Contributor ⭐
  • March 12, 2025

Fresh isn’t great when “looping” through an array. We’re all waiting on loops coming into worklfows.