{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/884e274fd2df42e08367b904ae955d3d\" frameborder=\"0\" width=\"1920\" height=\"1440\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1440,"width":1920,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1440,"thumbnail_width":1920,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/884e274fd2df42e08367b904ae955d3d-7af2595367f84482.gif","duration":488.917,"title":"Auto Sync Asset Display Name via API","description":"This Loom explains how to keep an asset’s display name in sync with an automatically changing hostname when tools like Intune or Jamf update the host name but not the display name. The author builds an asset workflow in Fresh that triggers when hostname or the asset is updated, then uses an expression to check whether the hostname matches the current asset name and exits if they do match. If they do not match, a web request calls Fresh API v2 assets using the display ID placeholder to set the asset name to the asset host name value in the JSON payload. The walkthrough also includes testing the workflow, confirming it updates the correct asset, and checking for errors by validating the web request status code is not 400 or higher."}