I need to create an “Execution templates” for Change password, in the Executor* field select cUrl and enter content:
“https://myurl.com/api/v1/localusers/24/” -H “Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==” -H “Content-Type: application/json” --data-raw "{"password\ “: "A21field"}”
I tried without quotes, prepending the command Curl, Curl.exe, etc. However, I always get errors like the following: Command ‘https://myurl.com/api/v1/localusers/24/’ not recognized.
I would like to know the syntax for the use of cUrl within “Execution templates”
Hi, @EDGAR_BAZAN
you must fill in as follows example below:
set-request-method “POST”
set-request-param “CURLOPT_RETURNTRANSFER” “1”
set-request-param “CURLOPT_SSL_VERIFYHOST” “FALSE”
set-request-param “CURLOPT_SSL_VERIFYPEER” “FALSE”
set-request-header “Authorization” “Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==”
set-request-header “Content-type” “application/json”
set-request-header “accept” “application/json”
set-request-content “{"workflowArgs":{"application": "[#ADD_INFO#]", "entry": "[#HOSTNAME#]", "username": "[#USERNAME#]", "password": "[#NEW_PASSWORD#]"}}”
request “https://myurl.com/api/”
expect “Pipedream”