← API reference
Mutation / jobs

createShiftDefinition

Create a new shift definition in the caller's tenant; the server mints its "shd" TypeID and timestamps. Validation failures come back as payload errors rather than as a GraphQL error. Requires shiftDefinition:write permission.

Arguments

Fields for the new shift definition.

Returns UpsertShiftDefinitionPayload!

Explore in a view

Production Floor
View exact SDL
"""
Create a new shift definition in the caller's tenant; the server mints its "shd" TypeID and timestamps. Validation failures come back as payload errors rather than as a GraphQL error. Requires shiftDefinition:write permission.
"""
createShiftDefinition(
  """Fields for the new shift definition."""
  input: CreateShiftDefinitionInput!
): UpsertShiftDefinitionPayload! @topic(names: ["jobs"])

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