Upsert a plugin declaration
Creates or replaces the access-manager declaration for the given plugin slug. Called by the product itself, at start-up, with its own M2M token.
The body has two sections and each is replaced ONLY when present, so a product can publish one without touching the other:
- the ACCESS section —
permissions,rolesandm2mtogether (a permission names the roles it grants to, so they are applied as one full sync: what the section no longer declares is removed). Served in single-tenant deployments only; in multi-tenant it answers501. - the SCOPE section —
scope.dimensions, the dimensions the product’s routes address instances by, andpartners, the product’s opt-in to partner credentials (either alone is the section), pluslevelsin the scope-only form. It replaces the product’s scope catalog wholesale and is served in single- AND multi-tenant deployments: the catalog is global per product. Every partner write is validated against it, andGET /v1/scope-catalog/{product}reads it back.
A body carrying both sections in multi-tenant applies the scope section and then answers 501 for the access section.
Failures: 422 — the manifest is malformed (the message lists every violation), declares neither section, its service is not the slug, no application is registered for the calling client, or the identity provider refused the scope catalog; 403 — the token does not speak for the slug; 409 — the access section could not be persisted; 501 — the access section in a multi-tenant deployment; 503 IDE-0066 — the identity provider is unavailable, retry later; 500 — another dependency failed, retry.
Parámetros de ruta
Cuerpo
Declaration manifest to upsert for the slug.
Lerian services this product calls while serving a request (e.g. midaz). A partner's request this product relays to one of them is also decided there by the partner's own rules for that service, so the Console offers to set those rules when the partner is granted this product. Forwarded with the scope catalog; alone it is a scope-only body. Entries must be non-empty, unique, different from service and contain no wildcard, compared trimmed and case-insensitively.
Scope-only form of the permissions' levels: one entry per permission that declares a level, sent when the permission section is not. Forwarded with the scope catalog. Not accepted next to permissions, which carry their level themselves; alone it is not a section, since it would replace the catalog's dimensions and opt-in with nothing.

