[8.8] Fixes documentation of response codes for copy saved objects (#158416) (#158419)

# Backport

This will backport the following commits from `main` to `8.8`:
- [Fixes documentation of response codes for copy saved objects
(#158416)](https://github.com/elastic/kibana/pull/158416)

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

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

<!--BACKPORT [{"author":{"name":"Jeramy
Soucy","email":"jeramy.soucy@elastic.co"},"sourceCommit":{"committedDate":"2023-05-24T20:33:29Z","message":"Fixes
documentation of response codes for copy saved objects (#158416)\n\n##
Summary\r\n\r\nMoves the response codes documented for the copy saved
object API to the\r\ncorrect document file.\r\n\r\nDocumentation was
incorrectly located
in\r\nhttps://github.com/elastic/kibana/pull/158036","sha":"ab7b2f7f79978a8c1a24859dffbb16c013d82e3a","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","Feature:Saved
Objects","Feature:Security/Spaces","release_note:skip","backport:prev-minor","v8.9.0"],"number":158416,"url":"https://github.com/elastic/kibana/pull/158416","mergeCommit":{"message":"Fixes
documentation of response codes for copy saved objects (#158416)\n\n##
Summary\r\n\r\nMoves the response codes documented for the copy saved
object API to the\r\ncorrect document file.\r\n\r\nDocumentation was
incorrectly located
in\r\nhttps://github.com/elastic/kibana/pull/158036","sha":"ab7b2f7f79978a8c1a24859dffbb16c013d82e3a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/158416","number":158416,"mergeCommit":{"message":"Fixes
documentation of response codes for copy saved objects (#158416)\n\n##
Summary\r\n\r\nMoves the response codes documented for the copy saved
object API to the\r\ncorrect document file.\r\n\r\nDocumentation was
incorrectly located
in\r\nhttps://github.com/elastic/kibana/pull/158036","sha":"ab7b2f7f79978a8c1a24859dffbb16c013d82e3a"}}]}]
BACKPORT-->

Co-authored-by: Jeramy Soucy <jeramy.soucy@elastic.co>
This commit is contained in:
Kibana Machine 2023-05-24 16:56:17 -04:00 committed by GitHub
parent 2135cf0ff9
commit 153b86110d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View file

@ -69,6 +69,15 @@ NOTE: This option cannot be used with the `createNewCopies` option.
+
NOTE: This option cannot be used with the `createNewCopies` option.
[[spaces-api-copy-saved-objects-response-codes]]
==== Response codes
`200`::
Indicates a successful call.
`404`::
Indicates that the request failed because one or more of the objects specified could not be found. A list of the unresolved objects are included in the 404 response attributes.
[role="child_attributes"]
[[spaces-api-copy-saved-objects-response-body]]
==== {api-response-body-title}

View file

@ -36,15 +36,6 @@ Updates one or more saved objects to add and/or remove them from specified space
`spacesToRemove`::
(Required, string array) The IDs of the spaces the specified objects should be removed from.
[[spaces-api-update-objects-spaces-response-codes]]
==== Response codes
`200`::
Indicates a successful call.
`404`::
Indicates that the request failed because one or more of the objects specified could not be found. A list of the unresolved objects are included in the 404 response attributes.
[role="child_attributes"]
[[spaces-api-update-objects-spaces-response-body]]
==== {api-response-body-title}