Skip to content

Repeated Query Parameter

URI: https://docs.ankatech.co/errors/repeated-query-parameter
HTTP Status: 400 Bad Request

When you see this

The request sent a query parameter the meta-audit operation does declare, but sent it more than once. It is refused rather than resolved to one occurrence, because the caller cannot know which occurrence the server would have used — and on an audit query that decides which records come back. The check runs inside the handler, after authentication and authorization, so an unauthenticated caller receives 401 and an unauthorized one 403 before any parameter is examined.

Common Causes

  • The same filter appended twice while a query string was being assembled — for example ?from=...&from=....
  • A client library that expresses a list by repeating a scalar parameter, on an operation that declares it as a single value.
  • A base URL that already carries a query string, with parameters appended on top of it.

An unknown parameter is reported before a repeated one, so a request with both defects sees unknown-query-parameter first.

Response Example

{
  "type": "https://docs.ankatech.co/errors/repeated-query-parameter",
  "title": "Repeated Query Parameter",
  "status": 400,
  "detail": "'readerTenantId' was sent more than once; send it exactly once",
  "instance": "/api/v3/audit/meta/access-logs",
  "timestamp": 1730000000,
  "extensions": {
    "requestId": "550e8400-e29b-41d4-a716-446655440000"
  }
}

Content-Type: application/problem+json — the response follows RFC 9457 Problem Details.

How to Resolve

  1. Read the detail: it names the repeated parameter.
  2. Send that parameter exactly once. If you need to express several values, check the operation's declared contract in /v3/api-docs for the shape it actually accepts — repeating a scalar is not it.
  3. Inspect the assembled query string rather than the parameters your code intended, especially when a base URL already carries one.

For full schema definitions, examples, and interactive testing, see the Developer Hub Reference.