I am looking to update the Asset State field of all of the Assets in our organization using the API but haven’t been able to work it out from the documentation.
The documentation shows “asset_state_25” nested under “type_fields”. I am unclear if this _25 is required for all or if it relates to the asset_type_id that is 25 in the example.
I’ve tested with the request body as the below but all return (400) Bad Request
$body = '{type_fields": {"asset_state_25": "Retired"}}' #documentation based
$body = '{type_fields": {"asset_state": "Retired"}}'
$body = '{type_fields": {"asset_state_2325": "Retired"}}' #asset id based
$body = '{type_fields": {"asset_state_10000652032": "Retired"}}' #asset type id based
Has anybody got some experience with this that could shed some light on how it should be formatted.