update api file