submitAssetForm() converted item_type_id/folder_id/status_id/ assigned_user_id from FormData's string values to numbers before JSON-encoding the payload, but missed quantity, so it stayed a string and the server's json.Decode into assetRequest.Quantity (int) rejected it as "cannot unmarshal string into Go struct field".