Skip to content

Commit 2b9f8ee

Browse files
committed
adding codeDepot markers for API ref
1 parent cd1e255 commit 2b9f8ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/Maestro/eg001TriggerWorkflow.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,14 @@ echo ""
6464

6565
workflow_id=$(grep -B 1 '"name": "Example workflow - send invite to signer"' $response | grep '"id":' | sed -n 's/.*"id": "\([^"]*\)".*/\1/p')
6666

67+
#apx-snippet-start:GetWorkflowTriggerRequirements
6768
# Get the trigger URL
69+
# workflow_id comes from the response of the Workflows: getWorkflowsList endpoint
6870
response=$(mktemp /tmp/response-wftmp.XXXXXX)
6971
Status=$(curl -s -w "%{http_code}\n" -i --request GET "${base_path}/accounts/${account_id}/workflows/${workflow_id}/trigger-requirements" \
7072
"${Headers[@]}" \
7173
--output ${response})
72-
74+
#apx-snippet-end:GetWorkflowTriggerRequirements
7375
# If the status code returned is greater than 201 (OK / Accepted), display an error message with the API response.
7476
if [[ "$Status" -gt "201" ]]; then
7577
echo ""

0 commit comments

Comments
 (0)