ProductionMu Mutation

updateCapability

Topics: Jobs

Update a capability. Only provided fields are changed. Requires capability:write permission.

Returns

UpsertCapabilityPayload!

Arguments

TypeID (prefix "cpb") of the capability to update. Returns a "capability not found" field error when the tenant cannot see it.

The fields to change. Omitted fields keep their current value; a changed code must not collide with another capability in the tenant.

Exact field SDL
"""
Update a capability. Only provided fields are changed. Requires capability:write permission.
"""
updateCapability(
  """
  TypeID (prefix "cpb") of the capability to update. Returns a "capability not found" field error when the tenant cannot see it.
  """
  id: CapabilityID!
  """
  The fields to change. Omitted fields keep their current value; a changed code must not collide with another capability in the tenant.
  """
  input: UpdateCapabilityInput!
): UpsertCapabilityPayload! @topic(names: ["jobs"])

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