← API reference
Mutation / jobs

updateCapability

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

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.

Returns UpsertCapabilityPayload!

Explore in a view

Production Floor
View exact 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"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.