# Update domain name in Site Quality Monitoring project This function updates the domain name for a Site Quality Monitoring project. It searches through all projects owned by the user to find systems that match the specified old domain and updates them to use the new domain. This is typically used when a website's domain name changes and the monitoring configuration needs to be updated accordingly. Endpoint: POST /SiteQuality/update_domain Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `new_domain` (string, required) The new domain name to replace the old domain in the Site Quality Monitoring project. Example: "newdomain.com" - `old_domain` (string, required) The current domain name that needs to be updated in the Site Quality Monitoring project. Example: "olddomain.com" ## Response 200 fields (application/json): - `apiversion` (integer) The version of the API. Example: 3 - `func` (string) The name of the method called. Example: "update_domain" - `module` (string) The name of the module called. Example: "SiteQuality" - `result` (object) - `result.data` (object) An object that contains the updated system information from the Site Quality Monitoring API. - `result.data.system` (object) Information about the updated monitoring system. - `result.data.system.id` (integer) The system's ID number. Example: 623358 - `result.data.system.name` (string) The updated system name (typically the new domain). Example: "newdomain.com" - `result.data.system.system_size` (object) Information about the system's subscription plan. - `result.data.system.system_size.id` (integer) The system size ID number. Example: 3 - `result.data.system.system_size.name` (string) The name of the system size/subscription plan. Example: "Unlimited lite" - `result.data.system.url` (string) The updated system URL with the new domain. Example: "https://newdomain.com" - `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 an API.