Skip to content

Commit 0d1bbc4

Browse files
api reference tags (#120)
1 parent 6041d71 commit 0d1bbc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/Maestro/eg002PauseWorkflow.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,18 @@ echo "Attempting to pause the Workflow.."
3535
echo ""
3636

3737
#ds-snippet-start:Maestro2Step3
38+
#apx-snippet-start:pauseNewWorkflowInstances
3839
response=$(mktemp /tmp/response-wftmp.XXXXXX)
3940
Status=$(
4041
curl -w '%{http_code}' --request POST "${base_path}/accounts/${ACCOUNT_ID}/workflows/${workflow_id}/actions/pause" \
4142
"${Headers[@]}" \
4243
--output ${response}
4344
)
45+
#apx-snippet-end:pauseNewWorkflowInstances
4446
# If the status code returned is greater than 201 (OK / Accepted), display an error message with the API response.
4547
if [[ "$Status" -gt "201" ]]; then
4648
echo ""
47-
echo "Unable to retrieve workflow instance: ${WORKFLOW_INSTANCE_ID}"
49+
echo "Unable to pause workflow: ${workflow_id}"
4850
echo ""
4951
cat $response
5052
exit 0

0 commit comments

Comments
 (0)