Fix BMS endpoint and auth issues

This commit is contained in:
Steve W
2026-04-07 19:50:24 +00:00
parent 4cfea24c7e
commit 0916a308b2
5 changed files with 18 additions and 13 deletions

9
scripts/bms-lookup.sh Executable file → Normal file
View File

@@ -53,12 +53,10 @@ cmd_lookup() {
bms_curl "/v2/system/issuetypes/lookup" | format_lookup
;;
sources|source)
echo "=== Ticket Sources ===" >&2
bms_curl "/v2/system/lookup/TicketSource" | format_lookup
die "Ticket source lookup endpoint is not exposed in the public BMS v2 Swagger. Use tenant-specific documentation or known SourceId values."
;;
ticket-types|tickettypes)
echo "=== Ticket Types ===" >&2
bms_curl "/v2/system/lookup/TicketType" | format_lookup
die "Ticket type lookup endpoint is not exposed in the public BMS v2 Swagger. Use tenant-specific documentation or known TypeId values."
;;
assignees|assignee|technicians)
echo "=== Assignees / Technicians ===" >&2
@@ -73,8 +71,7 @@ cmd_lookup() {
bms_curl "/v2/system/worktypes/lookup" | format_lookup
;;
note-types|notetypes)
echo "=== Note Types (via tenantlookup) ===" >&2
bms_curl "/v2/system/tenantlookup/NoteType" | format_lookup
die "Note type lookup endpoint is not exposed in the public BMS v2 Swagger. Use tenant-specific documentation or known note TypeId values."
;;
all)
cmd_lookup statuses