Fix BMS endpoint and auth issues
This commit is contained in:
12
SKILL.md
12
SKILL.md
@@ -124,8 +124,10 @@ bms lookup priorities # List all priorities with IDs
|
||||
bms lookup queues # List all queues with IDs
|
||||
bms lookup issue-types # List all issue types
|
||||
bms lookup assignees # List all assignees/technicians
|
||||
bms lookup ticket-types # List ticket types
|
||||
bms lookup sources # List ticket sources
|
||||
bms accounts # List CRM accounts (Id, Name, Code)
|
||||
bms locations --account 123 # List CRM locations for account 123
|
||||
bms lookup ticket-types # Not exposed in public BMS v2 Swagger for all tenants
|
||||
bms lookup sources # Not exposed in public BMS v2 Swagger for all tenants
|
||||
```
|
||||
|
||||
### Templates
|
||||
@@ -155,13 +157,13 @@ Use `bms templates tickets list` to see available template IDs before creating.
|
||||
|
||||
## Notes / Quirks
|
||||
|
||||
- **Auth**: BMS uses JWT Bearer tokens obtained via `POST /v2/security/authenticate` with `GrantType=password`. Tokens expire; the skill auto-refreshes using the refresh token endpoint.
|
||||
- **Auth**: BMS uses JWT Bearer tokens obtained via `POST /v2/security/authenticate` with `GrantType=password`. Tokens expire; the skill auto-refreshes using `POST /v2/security/refreshtoken`.
|
||||
- **Required fields for ticket creation**: Title, Details, AccountId, LocationId, StatusId, PriorityId, TypeId, SourceId, OpenDate — all are required by the API schema.
|
||||
- **IDs not names**: The API uses integer IDs for status, priority, type, etc. Use `bms lookup` commands to find the right IDs for your tenant.
|
||||
- **IDs not names**: The API uses integer IDs for status, priority, type, etc. Use `bms lookup`, `bms accounts`, and `bms locations` to find the right IDs for your tenant.
|
||||
- **Search vs GET list**: For filtered searches, `POST /v2/servicedesk/tickets/search` (with body) is more flexible than `GET /v2/servicedesk/tickets` (with query params); this skill uses the POST search by default.
|
||||
- **Pagination**: Default page size is 25. Use `--page-size` (max appears to be 100) and `--page` for large result sets.
|
||||
- **Date format**: Dates should be ISO 8601 strings, e.g. `2024-01-15T00:00:00`.
|
||||
- **Note TypeId**: Required when posting notes. Use `bms lookup note-types` to find valid IDs (typically: 1=Comment, 2=Resolution, etc. — varies by tenant).
|
||||
- **Note TypeId**: Required when posting notes. The public BMS v2 Swagger does not clearly expose a generic note-type lookup endpoint for all tenants, so you may need tenant-specific documentation or known values.
|
||||
- **Rate limits**: Not documented in the Swagger spec. Treat as standard REST API — avoid tight loops; add a small sleep between bulk operations.
|
||||
|
||||
## References
|
||||
|
||||
Reference in New Issue
Block a user