← API reference
Mutation / jobs

createCapability

Create a new capability. Requires capability:write permission.

Arguments

The capability to create. Its code must not already exist in the caller's tenant.

Returns UpsertCapabilityPayload!

Explore in a view

Production Floor
View exact SDL
"""Create a new capability. Requires capability:write permission."""
createCapability(
  """
  The capability to create. Its code must not already exist in the caller's tenant.
  """
  input: CreateCapabilityInput!
): UpsertCapabilityPayload! @topic(names: ["jobs"])

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