Adding preferences.

This commit is contained in:
stephb9959
2021-11-16 19:03:18 -08:00
parent a575d95b91
commit 370d4aca47
10 changed files with 31 additions and 98 deletions

View File

@@ -263,7 +263,8 @@ sendsms() {
}
setpreferences() {
payload="{ \"data\" : [ [ \"$1\" , \"$2\" ] ] }"
payload="{ \"data\" : [ { \"tag\" : \"${1}\" , \"value\" : \"${2}\" } ] }"
echo ${payload}
curl ${FLAGS} -X PUT "https://${OWSEC}/api/v1/preferences" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${token}" \