corestack_ company_ performance_ audit_ update
Change a performance audit.
When to use it
Change a performance audit as the Control Panel's edit form does: its name, environments, pages, number of requests, user agent or server location, and its shared report's sections and login. Only the arguments you send change; the saved results stay until the audit runs again (corestack_company_performance_audit_run). While a run is queued or running only the shared report's settings can change.
Ask for it
Using the Corefinity MCP server, call corestack_company_performance_audit_update with audit_id 276, name Before and after the move, page_types [{"title":"Home","path":"/","check_cache":true},{"title":"Basket","path":"/checkout/cart/"}]. (Change a performance audit.) Tell me what it returned.Inputs
At least 1.
Each {environment,; environment up to 100 characters and unique, url an http or https URL. A domain that leaves out http_username or http_password keeps the one saved for the environment of that name; send an empty string to remove it. Neither is ever answered (http_auth says whether one is set). Up to 10 items.
Fields of each item
Up to 100 characters.
Up to 255 characters.
Up to 255 characters.
Up to 255 characters.
Up to 255 characters.
1 to 20.
Each {title, path?, check_cache?}; title up to 100 characters and unique. Up to 20 items.
Fields of each item
Up to 255 characters.
Up to 100 characters.
The password the shared link asks for. Never answered; leave it out to keep the one set. Changing the protection, the username or the password signs out everyone who unlocked the link before. Up to 72 characters.
Whether the shared link asks for a username and password first. Turning it on needs a username and a password, sent now or set before.
The shared report's sections in order, each {key, enabled}, keys as corestack_ answers them under report.sections. The headline always stays first and the contact block last; a section left out keeps its place and whether it shows, and the sections sent take the places they held, in the order sent. Up to 19 items.
Fields of each item
heroat_a_glanceresponse_timesgapimprovementabsolute_timeswaterfallfilmstripfull_tablegoogle_scoresdefinitionsmethodtiming_breakdownsamplesstatus_codesresponse_headersraw_lighthouse_jsonall_metricsctaThe username the shared link asks for. Up to 64 characters.
A server location's id. At least 1.
Up to 255 characters.
Answers the audit as corestack_company_performance_audit_get does, without its results and log.
Example call
{
"name": "corestack_company_performance_audit_update",
"arguments": {
"audit_id": 276,
"name": "Before and after the move",
"page_types": [
{"title": "Home", "path": "/", "check_cache": true},
{"title": "Basket", "path": "/checkout/cart/"}
]
}
}If it is refused
| Reason | What to do |
|---|---|
tenant_mismatch | No such audit, or it belongs to a company you may not access. |
run_in_progress | The audit is queued or running and you sent something a run reads (anything but the shared report's settings); wait for it to finish (corestack_company_performance_audit_get), then change it. |
invalid_arguments | A value the edit form would refuse (an empty name, a URL that is not http or https, two environments or pages with the same name, an unknown server location, an unknown report section, protection without a username or password, a password shorter than 10 characters). |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it. |
rate_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |