mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-02 03:37:51 +00:00
Adding preferences.
This commit is contained in:
@@ -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}" \
|
||||
|
||||
Reference in New Issue
Block a user