We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a907b commit ac93890Copy full SHA for ac93890
Examples/eg008CreateTemplate.sh
@@ -14,7 +14,14 @@ curl --header "Authorization: Bearer {ACCESS_TOKEN}" \
14
--header "Content-Type: application/json" \
15
--get \
16
--data-urlencode "search_text=${template_name}" \
17
- --request GET https://demo.docusign.net/restapi/v2/accounts/{ACCOUNT_ID}/templates
+ --request GET https://demo.docusign.net/restapi/v2/accounts/{ACCOUNT_ID}/templates \
18
+ --output $response
19
+
20
+# pull out the templateId if it was returned
21
+TEMPLATE_ID=`cat $response | grep templateId | sed 's/.*\"templateId\": \"//' | sed 's/\",.*//'`
22
23
+# Save the template id for use by other scripts
24
+echo ${TEMPLATE_ID} > ../TEMPLATE_ID
25
26
27
exit 0
0 commit comments