We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6041d71 commit 0d1bbc4Copy full SHA for 0d1bbc4
1 file changed
examples/Maestro/eg002PauseWorkflow.sh
@@ -35,16 +35,18 @@ echo "Attempting to pause the Workflow.."
35
echo ""
36
37
#ds-snippet-start:Maestro2Step3
38
+#apx-snippet-start:pauseNewWorkflowInstances
39
response=$(mktemp /tmp/response-wftmp.XXXXXX)
40
Status=$(
41
curl -w '%{http_code}' --request POST "${base_path}/accounts/${ACCOUNT_ID}/workflows/${workflow_id}/actions/pause" \
42
"${Headers[@]}" \
43
--output ${response}
44
)
45
+#apx-snippet-end:pauseNewWorkflowInstances
46
# If the status code returned is greater than 201 (OK / Accepted), display an error message with the API response.
47
if [[ "$Status" -gt "201" ]]; then
48
- echo "Unable to retrieve workflow instance: ${WORKFLOW_INSTANCE_ID}"
49
+ echo "Unable to pause workflow: ${workflow_id}"
50
51
cat $response
52
exit 0
0 commit comments