Skip to content
v1
Docs

Error code

unknown_parameter

HTTP 422code: unknown_parametertitle: Unknown parameter

This code is retired: the API no longer sends it. It answered a GET that sent a query parameter the operation does not take. Such a name is now ignored: the call is answered as if the name had not been sent, with no error and no header naming it. The panel shows the answer the code used to give.

What a client sees now:

  • A misspelt or unknown filter is not applied. A call with stauts=open reads every incident, not the open ones: check a filter’s name against the reference, which lists every parameter an operation takes.
  • page and per_page are read on the page lists and ignored on the lists that page by time (log search, a custom metric’s samples, a service’s scans and runs). offset, page_size and the like are ignored everywhere. See pagination.
  • A cursor sent to a page list is ignored: the answer is the page named by page, or the first page.
  • organisation_uuid, or a path parameter sent again in the query, changes nothing: the organisation is always the key’s, and the path’s value is the one used.
  • A body field a write does not take was always ignored, and still is. A field a write refuses outright is still 422 invalid_request.

The Problem schema keeps accepted_parameters, marked deprecated, so a client generated from an older document still reads; it is never sent.

Every problem document carries type, title, status, code, detail and request_id. This code added errors, an object of the unknown parameter names, each with one sentence, and accepted_parameters, the list of the query parameters the operation takes.

Nothing is refused for an unknown query parameter any more. A client that handled this code can keep its handler; it is never reached. To be sure a filter applies, use the names the reference lists.

This page's address

The API's answer names this page in type as https://docs.watchtower15.com/api/errors/unknown_parameter/, an identifier that never changes within v1. That address answers with a permanent redirect to this page, so a link in a log still opens it, and a client comparing type as a string never breaks.