---
title: "Disable legacy URL aliases"
method: POST
path: "/api/spaces/_disable_legacy_url_aliases"
tags: ["spaces"]
---

# Disable legacy URL aliases

`POST /api/spaces/_disable_legacy_url_aliases`

Disable one or more legacy URL aliases so that they no longer resolve to their target saved objects.

## Headers

- `kbn-xsrf` string, required

## Request body

- object
  - `aliases` object[], required
    - `sourceId` string, required — The alias source object identifier. This is the legacy object identifier.
    - `targetSpace` string, required — The space where the alias target object exists.
    - `targetType` string, required — The type of alias target object.

## Response `204`

Indicates a successful call.

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
