Fix accounts/locations endpoints to use /v2/crm/accounts

This commit is contained in:
OpenClaw Agent
2026-04-07 19:08:52 +00:00
parent a9aec2910f
commit 4cfea24c7e
2 changed files with 2 additions and 2 deletions

View File

@@ -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')

View File

@@ -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')