ProductionMu Mutation

deleteShiftDefinition

Topics: Jobs

Delete a shift definition from the caller's tenant. Deleting one that does not exist is reported as success: false with an "id" error, not as a GraphQL error. Requires shiftDefinition:delete permission.

Returns

DeleteShiftDefinitionPayload!

Arguments

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

Exact field SDL
"""
Delete a shift definition from the caller's tenant. Deleting one that does not exist is reported as success: false with an "id" error, not as a GraphQL error. Requires shiftDefinition:delete permission.
"""
deleteShiftDefinition(
  """TypeID (prefix "shd") of the shift definition to delete."""
  id: ShiftDefinitionID!
): DeleteShiftDefinitionPayload! @topic(names: ["jobs"])

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