Fix BMS endpoint and auth issues
This commit is contained in:
9
scripts/bms-lookup.sh
Executable file → Normal file
9
scripts/bms-lookup.sh
Executable file → Normal 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
|
||||
|
||||
Reference in New Issue
Block a user