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.
uapi --output=jsonpretty \ --user=username \ SiteQuality \ update_domain \ old_domain=olddomain.com \ new_domain=newdomain.com
{- "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
}
}