Skip to content

Commit 078635b

Browse files
committed
add allowNoIndex to rest API
1 parent db95d0e commit 078635b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/plugins/data/server/index_patterns/routes/create_index_pattern.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const indexPatternSpecSchema = schema.object({
5050
})
5151
)
5252
),
53+
allowNoIndex: schema.maybe(schema.boolean()),
5354
});
5455

5556
export const registerCreateIndexPatternRoute = (

src/plugins/data/server/index_patterns/routes/update_index_pattern.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const indexPatternUpdateSchema = schema.object({
3838
),
3939
fieldFormats: schema.maybe(schema.recordOf(schema.string(), serializedFieldFormatSchema)),
4040
fields: schema.maybe(schema.recordOf(schema.string(), fieldSpecSchema)),
41+
allowNoIndex: schema.maybe(schema.boolean()),
4142
});
4243

4344
export const registerUpdateIndexPatternRoute = (

0 commit comments

Comments
 (0)