[DOCS] Fix ML sync API example (#133585)

This commit is contained in:
Lisa Cawley 2022-06-08 07:26:07 -07:00 committed by GitHub
parent b7c4d890c0
commit b7ae8a2efb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 76 additions and 14 deletions

View file

@ -74,7 +74,7 @@ Retrieve the list of {ml} saved objects that require synchronization:
[source,sh]
--------------------------------------------------
$ curl -X GET api/ml/saved_objects/sync?simulate=true
GET api/ml/saved_objects/sync?simulate=true
--------------------------------------------------
// KIBANA
@ -83,7 +83,7 @@ the following response:
[source,sh]
--------------------------------------------------
{{"savedObjectsCreated":{"anomaly_detector":{"myjob1":{"success":true},"myjob2":{"success":true}}},"savedObjectsDeleted":{},"datafeedsAdded":{},"datafeedsRemoved":{}}
{"savedObjectsCreated":{"anomaly_detector":{"myjob1":{"success":true},"myjob2":{"success":true}}},"savedObjectsDeleted":{},"datafeedsAdded":{},"datafeedsRemoved":{}}
--------------------------------------------------
To perform the synchronization, re-run the API and omit the `simulate` parameter.