You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/tools/ngcp-api-patch-stdin

16 lines
344 B

#!/bin/sh
usage () {
echo "Usage: $0 <url>";
exit;
}
URL="$1"
test -z "$URL" && usage;
CTYPE="application/json-patch+json"
test -z "$APIUSER" && APIUSER="administrator:administrator"
curl -i -X PATCH \
-H 'Connection: close' -H 'Prefer: return=representation' -H "Content-Type: $CTYPE" \
--user "$APIUSER" --insecure "$URL" -T -