# Update Passenger application settings This function edits a Passenger application for an account. : When you disable the Web Server role, the system this function. Endpoint: GET /PassengerApps/edit_application Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `name` (string, required) The application’s current name. Example: "Ruby Slippers" - `clear_envvars` (integer) Whether to clear the application’s environment variables. Enum: 0, 1 - `deployment_mode` (string) The new server environment in which to run the application. If you do not use this parameter, the function does not change the application’s server environment. * — Sets the application to run in a development environment. * — Sets the application to run in a production environment. Enum: "production", "development" - `domain` (string) The application’s new domain. If you do not use this parameter, the function does not change the application’s domain. Example: "toto.com" - `enabled` (integer) Whether to enable the application and generate the web server configuration for it. * — Enable the application and generate the web server configuration. * — Don’t enable the application and generate the web server configuration. Enum: 0, 1 - `envvar_name` (array) New set of environment variables for the application. : The function replaces all current environment variables with the variables that you pass in this parameter. : For each parameter you send you include an parameter. Example: ["SCARECROW","TINMAN","LION"] - `envvar_value` (array) Each environment variable’s value. : For each parameter you send you include an parameter. Example: ["brain","heart","courage"] - `new_name` (string) The application’s new name. If you do not use this parameter, the function does not change the application's name. Example: "Little Dog" - `path` (string) The application’s new filepath. If you do not use this parameter, the function does not change the application’s filepath. Example: "/home/dorothy/littledog" ## Response 200 fields (application/json): - `apiversion` (integer) The version of the API. Example: 3 - `func` (string) The name of the method called. Example: "edit_application" - `module` (string) The name of the module called. Example: "PassengerApps" - `result` (object) - `result.data` (object) - `result.errors` (array,null) List of errors if the API failed. - `result.messages` (array,null) List of messages generated by the API. - `result.metadata` (object) - `result.status` (integer) - — Success. - — Failed. Check the field for more details. Enum: 0, 1 - `result.warnings` (array,null) List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.