Save status as integer, as expected by the api