Fix accounts/locations endpoints to use /v2/crm/accounts
This commit is contained in:
@@ -8,7 +8,7 @@ fi
|
||||
|
||||
curl --silent --show-error --fail \
|
||||
-H "Authorization: Bearer $token" \
|
||||
"https://api.bms.kaseya.com/v2/servicedesk/accounts/lookup" | \
|
||||
"https://api.bms.kaseya.com/v2/crm/accounts/lookup" | \
|
||||
jq -r '.result[]? // .[]' | \
|
||||
while IFS= read -r line; do
|
||||
id=$(echo "$line" | jq -r '.Id')
|
||||
|
||||
@@ -19,7 +19,7 @@ esac
|
||||
|
||||
curl --silent --show-error --fail \
|
||||
-H "Authorization: Bearer $token" \
|
||||
"https://api.bms.kaseya.com/v2/servicedesk/locations?accountId=$account_id" | \
|
||||
"https://api.bms.kaseya.com/v2/crm/accounts/${account_id}/locations/lookup" | \
|
||||
jq -r '.result[]? // .[]' | \
|
||||
while IFS= read -r line; do
|
||||
id=$(echo "$line" | jq -r '.Id')
|
||||
|
||||
Reference in New Issue
Block a user