Curl Switch Script Example

Post Reply
Farva
Newbie
Posts: 5
Joined: Wed Jul 07, 2021 11:14 pm

Curl Switch Script Example

Post by Farva » Tue Jul 20, 2021 5:52 pm

Does anyone have a example of a Switch script to execute a curl command? Below is my Curl i need to execute. I have had success trying to create my own.

curl --location --request PATCH 'https://somewebsite.com/fmi/data/v1/dat ... /records/6' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 18cfbff76b81ec11ac6239041444fa618d2c89328ae0f3c6b6f0' \
--data-raw '{"fieldData": {
"Status": "2"
}
}'

Farva
Newbie
Posts: 5
Joined: Wed Jul 07, 2021 11:14 pm

Re: Curl Switch Script Example

Post by Farva » Wed Jul 21, 2021 5:17 pm

Or maybe A script that does the HTTP call and not necessarily using curl?

Post Reply