[8.10] [Observability AI Assistant] Body should not be required for Kibana (#165653) (#165667)

# Backport

This will backport the following commits from `main` to `8.10`:
- [[Observability AI Assistant] Body should not be required for Kibana
(#165653)](https://github.com/elastic/kibana/pull/165653)

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

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

<!--BACKPORT [{"author":{"name":"Dario
Gieselaar","email":"dario.gieselaar@elastic.co"},"sourceCommit":{"committedDate":"2023-09-05T10:16:25Z","message":"[Observability
AI Assistant] Body should not be required for Kibana
(#165653)","sha":"4ce9d5d6cce65e878d84c63f71ae1852620f3062","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.10.0","v8.11.0"],"number":165653,"url":"https://github.com/elastic/kibana/pull/165653","mergeCommit":{"message":"[Observability
AI Assistant] Body should not be required for Kibana
(#165653)","sha":"4ce9d5d6cce65e878d84c63f71ae1852620f3062"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/165653","number":165653,"mergeCommit":{"message":"[Observability
AI Assistant] Body should not be required for Kibana
(#165653)","sha":"4ce9d5d6cce65e878d84c63f71ae1852620f3062"}}]}]
BACKPORT-->

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
This commit is contained in:
Kibana Machine 2023-09-05 07:29:58 -04:00 committed by GitHub
parent 01b5679a74
commit b6688495fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ export function registerKibanaFunction({
description: 'The body of the request',
},
},
required: ['method', 'pathname', 'body'] as const,
required: ['method', 'pathname'] as const,
},
},
({ arguments: { method, pathname, body, query } }, signal) => {