update-model-snapshot.asciidoc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --
  2. :api: update-model-snapshot
  3. :request: UpdateModelSnapshotRequest
  4. :response: UpdateModelSnapshotResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Update model snapshot API
  9. Provides the ability to update a {ml} model snapshot.
  10. It accepts a +{request}+ object and responds with a +{response}+ object.
  11. [id="{upid}-{api}-request"]
  12. ==== Update model snapshot request
  13. A +{request}+ requires the following arguments:
  14. ["source","java",subs="attributes,callouts,macros"]
  15. --------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. --------------------------------------------------
  18. <1> Constructing a new request referencing existing `jobId` and `snapshotId`
  19. values.
  20. ==== Optional arguments
  21. The following arguments are optional:
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-description]
  25. --------------------------------------------------
  26. <1> The updated description of the {ml} model snapshot.
  27. ["source","java",subs="attributes,callouts,macros"]
  28. --------------------------------------------------
  29. include-tagged::{doc-tests-file}[{api}-retain]
  30. --------------------------------------------------
  31. <1> The updated `retain` property of the {ml} model snapshot.
  32. include::../execution.asciidoc[]
  33. [id="{upid}-{api}-response"]
  34. ==== Update model snapshot response
  35. A +{response}+ contains an acknowledgement of the update request and the full representation of the updated `ModelSnapshot` object
  36. ["source","java",subs="attributes,callouts,macros"]
  37. --------------------------------------------------
  38. include-tagged::{doc-tests-file}[{api}-response]
  39. --------------------------------------------------
  40. <1> An acknowledgement of the request.
  41. <2> The updated `ModelSnapshot`.