Get the caller's open request for a system
GET/queue/pending/:systemId
Returns the calling user's queue item for the system whose status is pending or expiring, if one exists.
Returns 204 with no body when there is none. Always scoped to the caller, including for admins.
Required role: any authenticated user.
Request
Responses
- 200
- 204
- 401
- 403
- 422
The open queue item.
The caller has no pending or expiring request on that system.
No token, or the token is invalid or expired. The body is {message}: No auth token provided when no token is sent, otherwise the token check's message (jwt expired, jwt malformed, invalid signature, invalid token, jwt signature is required). Send Authorization: Bearer <token> exactly: the server drops the first seven characters of the header and reads the rest as the token, so a different scheme or an extra space fails. If Authorization is absent, the server reads a token field in the body, then a token query parameter, then x-access-token. Routes that validate query fields reject ?token= with 400 InvalidQuery.
The token's role is not allowed for this operation, or the token's scopes exclude the route
(Scope not allowed by token).
The id is not a valid object id. Typed error body UnprocessableEntityError. A well-formed id that matches nothing, including the all-zero id, returns 204.