# missing-parameter

<Badge variant="warning">400 Bad Request</Badge> <Badge variant="muted">missing-parameter</Badge>

| Field | Value |
|---|---|
| **Type URI** | `https://docs.kordiam.app/docs/errors/missing-parameter` |
| **HTTP Status** | `400 Bad Request` |

## Description

A required query parameter, path variable, or request header is missing from the request. The `detail` field in the response identifies the name of the missing parameter.

## Response Example

```json
{
  "type": "https://docs.kordiam.app/docs/errors/missing-parameter",
  "title": "Missing Parameter",
  "status": 400,
  "detail": "Required query parameter 'platformId' of type 'Long' is missing",
  "instance": "/api/v2/elements",
  "traceId": "abc-123-def",
  "parameterName": "platformId",
  "parameterType": "Long"
}
```

## Common Causes

- Missing a required query parameter in the URL (e.g., `?platformId=1`)
- Omitting a required path variable from the URL path
- Forgetting a required request header

## How to Fix

Check the API documentation for the endpoint you are calling and ensure all required parameters are included. The `detail` field in the error response names the missing parameter, so add it to your request and retry.
