Skip to main content

system.mes.operation.pauseOperation

Description

Pauses an Operations object.

Syntax

system.mes.operation.pauseOperation(operationId)
system.mes.operation.pauseOperation(locationId, operationName)

Parameters

Method 1: Pause by Operation ID

ParameterTypeNullableDescription
operationIdString (ULID)FalseThe ID of the operation to pause.

Method 2: Pause by Location and Operation Name

ParameterTypeNullableDescription
locationIdString (ULID)FalseThe ID of the location associated with the operation.
operationNameStringFalseThe name of the operation.

Returns

Returns a JSON object of the operation execution result for the suspension of the operation.

Example Usage

# Pause the operation
paused_operation_result = system.mes.operation.pauseOperation('01JPBCPKSR-972W3V0Y-H00NNSKQ')

# Output the operation execution result of the paused operation
print(paused_operation_result)