CorefinityCorefinityDocs
Open the Control PanelControl Panel
Integrations · 30 of 39

corestack_company_performance_audit_update

Change a performance audit.

Scope writeNo secrets returned
On this page

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

Prompt
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

audit_idintegerRequired

At least 1.

domainsarray of objects

Each {environment, url, http_username?, http_password?}; 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
environmentstringRequired

Up to 100 characters.

http_passwordstring

Up to 255 characters.

http_usernamestring

Up to 255 characters.

urlstringRequired

Up to 255 characters.

namestring

Up to 255 characters.

number_of_requestsinteger

1 to 20.

page_typesarray of objects

Each {title, path?, check_cache?}; title up to 100 characters and unique. Up to 20 items.

Fields of each item
check_cacheboolean
pathstring

Up to 255 characters.

titlestringRequired

Up to 100 characters.

report_passwordstring

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.

report_password_protectedboolean

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.

report_sectionsarray of objects

The shared report's sections in order, each {key, enabled}, keys as corestack_company_performance_audit_get 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
enabledbooleanRequired
keystringRequired
heroat_a_glanceresponse_timesgapimprovementabsolute_timeswaterfallfilmstripfull_tablegoogle_scoresdefinitionsmethodtiming_breakdownsamplesstatus_codesresponse_headersraw_lighthouse_jsonall_metricscta
report_usernamestring

The username the shared link asks for. Up to 64 characters.

server_locationinteger

A server location's id. At least 1.

user_agentstring

Up to 255 characters.

Answers the audit as corestack_company_performance_audit_get does, without its results and log.

Example call

tools/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

ReasonWhat to do
tenant_mismatchNo such audit, or it belongs to a company you may not access.
run_in_progressThe 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_argumentsA 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_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe 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_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT