---
title: "Update MLE Configuration for Target"
method: PATCH
path: "/targets/{id}/mle/"
tags: ["Targets"]
---

# Update MLE Configuration for Target

`PATCH /targets/{id}/mle/`

Allows updating MLE metadata (enabled, key_id, scope) for a target.
Keys cannot be updated via PATCH - use PUT to replace entire configuration.

## Path parameters

- `id` string, required

## Request body

- PatchedMLEConfigUpdate
  - `enabled` boolean — Enable or disable MLE for the target.
  - `key_id` string — Update the Key ID for MLE configuration.
  - `scope` string[] — Update the list of URLs where MLE is applied. Each URL must include the scheme and hostname (e.g., ["https://api.example.com/v1/payments"]).

## Response `200`

- MLEConfigStatus
  - `configured` boolean, required — Indicates if MLE is configured for the target.
  - `enabled` boolean, required — Indicates if MLE is currently enabled for the target.
  - `key_id` string, nullable, required — The Key ID for MLE configuration.
  - `scope` string[], nullable, required — List of URLs where MLE is applied.

## Other responses

- `400`
- `403`
- `404`

---

[API](https://skmtc.net/probely/apis/snyk-api-web-s-api-reference-documentation.md) · [All operations](https://skmtc.net/probely/apis/snyk-api-web-s-api-reference-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/probely/snyk-api-web-s-api-reference-documentation/versions/e29879bff01b/schema)
