change the apiDefinition