← API reference
Mutation / jobs

updateShiftDefinition

Patch an existing shift definition and stamp updatedAt. An unknown id, and any validation failure, come back as payload errors rather than as a GraphQL error. Requires shiftDefinition:write permission.

Arguments

TypeID (prefix "shd") of the shift definition to patch.

Fields to change; omitted fields keep their current values.

Returns UpsertShiftDefinitionPayload!

Explore in a view

Production Floor
View exact SDL
"""
Patch an existing shift definition and stamp updatedAt. An unknown id, and any validation failure, come back as payload errors rather than as a GraphQL error. Requires shiftDefinition:write permission.
"""
updateShiftDefinition(
  """TypeID (prefix "shd") of the shift definition to patch."""
  id: ShiftDefinitionID!
  """Fields to change; omitted fields keep their current values."""
  input: UpdateShiftDefinitionInput!
): UpsertShiftDefinitionPayload! @topic(names: ["jobs"])

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