ProductionMu Mutation

upsertCapability

Topics: Jobs

Create a capability, or replace an existing one wholesale when input.id is given. Unlike createCapability/updateCapability this does not reject a duplicate code. The capability is written under the caller's tenant. Requires capability:write permission.

Returns

UpsertCapabilityPayload!

Arguments

The capability to create or replace. With input.id the existing capability is overwritten wholesale; without it a new one is created.

Exact field SDL
"""
Create a capability, or replace an existing one wholesale when input.id is given. Unlike createCapability/updateCapability this does not reject a duplicate code. The capability is written under the caller's tenant. Requires capability:write permission.
"""
upsertCapability(
  """
  The capability to create or replace. With input.id the existing capability is overwritten wholesale; without it a new one is created.
  """
  input: UpsertCapabilityInput!
): UpsertCapabilityPayload! @topic(names: ["jobs"])

Declared on Mutation. Access is checked by the platform for each operation.