POST /api/spaces/_disable_legacy_url_aliases
curl \ --request POST 'https://localhost:5601/api/spaces/_disable_legacy_url_aliases' \ --header "Authorization: $API_KEY" \ --header "Content-Type: application/json" \ --header "kbn-xsrf: true" \ --data '{"aliases":[{"sourceId":123,"targetType":"dashboard","targetSpace":"bills-space"}]}'
Request example
This request leaves the alias intact but the legacy URL for this alias (http://localhost:5601/s/bills-space/app/dashboards#/view/123) will no longer function. The dashboard still exists and you can access it with the new URL.
{ "aliases": [ { "sourceId": 123, "targetType": "dashboard", "targetSpace": "bills-space" } ] }