corestack_ company_ magento_ keys_ update
Set the Magento repository keys.
When to use it
Set your company's own repo.magento.com access keys, used by its Magento 2 sites to install packages. They are checked with repo.magento.com before they are saved. For a client company your agency manages, send client_company_id.
When your agency sets a client company's keys, the client company's owners are emailed which agency and which person added or replaced them, and when; never a key. The answer's updated_by.agency names your agency.
Ask for it
Using the Corefinity MCP server, call corestack_company_magento_keys_update with public_key 0123456789abcdef0123456789abcdef, private_key fedcba9876543210fedcba9876543210. (Set the Magento repository keys.) Tell me what it returned.Inputs
A client company your agency manages, by id. Omit for your own company. At least 1.
32 characters: 0–9 and a–f. While app_versions is on, leave both keys out to have the person add them in the Control Panel (Company settings, Magento Marketplace keys): the call asks for the page to be opened and answers the saved keys on the retry; one key without the other is invalid_arguments.
32 characters: 0–9 and a–f.
Example call
{
"name": "corestack_company_magento_keys_update",
"arguments": {
"public_key": "0123456789abcdef0123456789abcdef",
"private_key": "fedcba9876543210fedcba9876543210"
}
}If it is refused
| Reason | What to do |
|---|---|
upstream_unavailable | The Control Panel answered 502: the cluster, a DNS resolver, Cloudflare, Mailgun, a Git provider, Google, Xero or Cloud Storage did not answer; details.upstream names it; retry later. |
tenant_mismatch | The company is not one your agency manages, or it does not exist; the same answer for both. Being attached to your agency is not enough: one of its live CoreStack sites must name your agency as its managing agency. |
pin_refused | A token limited to some sites cannot act on a client company's keys. |
invalid_arguments | Give both keys. Without the organisation pages, the Control Panel has no page where the person could add a client company's keys. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
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. |