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.

SecurityBasicAuth
Request
query Parameters
new_domain
required
string

The new domain name to replace the old domain in the Site Quality Monitoring project.

Example: new_domain=newdomain.com
old_domain
required
string

The current domain name that needs to be updated in the Site Quality Monitoring project.

Example: old_domain=olddomain.com
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
post/SiteQuality/update_domain
Request samples
uapi --output=jsonpretty \
  --user=username \
  SiteQuality \
  update_domain \
  old_domain=olddomain.com \
  new_domain=newdomain.com
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "update_domain",
  • "module": "SiteQuality",
  • "result": {
    • "data": {
      • "system": {
        • "id": 623358,
        • "name": "newdomain.com",
        • "system_size": {
          • "id": 3,
          • "name": "Unlimited lite"
          },
        }
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}