Skip to main content

Possible API Bug report with /assets/{AssetId}

  • May 15, 2023
  • 4 replies
  • 159 views

bclark
Mentor
Forum|alt.badge.img+13

I say possible because maybe this is working as intended. I was doing some experimenting with updating a custom field via the API with the /assets/{AssetId} endpoint. Initially when running it I got this message back:

 

 "Errors": [
{
"Message": "Asset tag is required"
},
{
"Message": "Model is required"
}
]

 

Adding the Asset Tag and Model ID seemed to resolve both issues. I was also able to update both Notes and a Custom Field (experimenting with how I want to store a bit of info). However, I did NOT expect it to remove the Owner, location, or serial number from the asset. In the grand scheme of things I'll already have that information from earlier in my script I'm working on, so not a huge deal. But it's certainly not what I thought would happen. I would have anticipated only the fields I was referencing to be updated.

4 replies

Kathryn Carter
Forum|alt.badge.img+18
  • Community Manager
  • 11045 replies
  • May 16, 2023

@bclark Hey! I reached out to our API masters, and they said to submit this as a ticket to be scaled up to our Development Team. I am happy to submit it on your behalf! 😄

 


bclark
Mentor
Forum|alt.badge.img+13
  • Author
  • Mentor
  • 257 replies
  • May 16, 2023

That works for me. Appreciate it.


bclark
Mentor
Forum|alt.badge.img+13
  • Author
  • Mentor
  • 257 replies
  • May 24, 2023

Just updating since this issue has been resolved with support. It’s working as intended.


Kathryn Carter
Forum|alt.badge.img+18
  • Community Manager
  • 11045 replies
  • May 24, 2023

@bclark Thank you for the update, and I am glad it is working for you! 😄