Skip to content

Commit c2fb23c

Browse files
committed
Mark snapshot.create/snapshot.restore bodies as optional too
1 parent c3969df commit c2fb23c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

specification/snapshot/create/SnapshotCreateRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export interface Request extends RequestBase {
6464
*/
6565
wait_for_completion?: boolean
6666
}
67-
body: {
67+
body?: {
6868
/**
6969
* Determines how wildcard patterns in the `indices` parameter match data streams and indices.
7070
* It supports comma-separated values such as `open,hidden`.

specification/snapshot/restore/SnapshotRestoreRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export interface Request extends RequestBase {
8383
*/
8484
wait_for_completion?: boolean
8585
}
86-
body: {
86+
body?: {
8787
/**
8888
* The feature states to restore.
8989
* If `include_global_state` is `true`, the request restores all feature states in the snapshot by default.

0 commit comments

Comments
 (0)