Closes #66867 by adding missing, requried API params (#68465)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Oliver Gupte 2020-06-08 07:30:14 -07:00 committed by GitHub
parent fcab9745e0
commit 2bedb59c8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,6 @@ export async function createWatch({
return callApi(http, {
method: 'PUT',
pathname: `/api/watcher/watch/${id}`,
body: { type: 'json', id, watch },
body: { type: 'json', id, watch, isNew: true, isActive: true },
});
}