[8.6] Update DELETE request (#127537) (#149492)

# Backport

This will backport the following commits from `main` to `8.6`:
- [Update DELETE request
(#127537)](https://github.com/elastic/kibana/pull/127537)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Jorge
Sanz","email":"jorge.sanz@elastic.co"},"sourceCommit":{"committedDate":"2023-01-25T10:45:49Z","message":"Update
DELETE request (#127537)\n\nUpdate the `DELETE` request to use
`<space_name>`.\r\n\r\nThanks @Erni for the
nudge!\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"fc17f49f27d00c1154df710686090d127f383e8c","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","docs","backport:all-open","v8.7.0"],"number":127537,"url":"https://github.com/elastic/kibana/pull/127537","mergeCommit":{"message":"Update
DELETE request (#127537)\n\nUpdate the `DELETE` request to use
`<space_name>`.\r\n\r\nThanks @Erni for the
nudge!\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"fc17f49f27d00c1154df710686090d127f383e8c"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/127537","number":127537,"mergeCommit":{"message":"Update
DELETE request (#127537)\n\nUpdate the `DELETE` request to use
`<space_name>`.\r\n\r\nThanks @Erni for the
nudge!\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"fc17f49f27d00c1154df710686090d127f383e8c"}}]}]
BACKPORT-->

Co-authored-by: Jorge Sanz <jorge.sanz@elastic.co>
This commit is contained in:
Kibana Machine 2023-01-25 06:04:44 -05:00 committed by GitHub
parent 22383ac3e0
commit 1420ff4f8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,7 @@ WARNING: When you delete a space, all saved objects that belong to the space are
[[spaces-api-delete-request]]
==== Request
`DELETE <kibana host>:<port>/api/spaces/space/marketing`
`DELETE <kibana host>:<port>/api/spaces/space/<space_name>`
[[spaces-api-delete-errors-codes]]
==== Response codes