update_transform.asciidoc 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --
  2. :api: update-transform
  3. :request: UpdateTransformRequest
  4. :response: UpdateTransformResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Update {transform} API
  9. Updates an existing {transform}.
  10. The API accepts a +{request}+ object as a request and returns a +{response}+.
  11. [id="{upid}-{api}-request"]
  12. ==== Update {transform} request
  13. A +{request}+ requires the following argument:
  14. ["source","java",subs="attributes,callouts,macros"]
  15. --------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. --------------------------------------------------
  18. <1> The update configuration with which to update the {transform}.
  19. <2> The ID of the configuration to update.
  20. <3> Whether or not to wait to run deferrable validations until `_start` is called.
  21. This option should be used with care as the created {transform} will run
  22. with the privileges of the user creating it. Meaning, if they do not have privileges,
  23. such an error will not be visible until `_start` is called.
  24. [id="{upid}-{api}-config"]
  25. ==== {transform-cap} update configuration
  26. The `TransformConfigUpdate` object contains all the details about updated
  27. {transform} configuration and contains the following arguments:
  28. ["source","java",subs="attributes,callouts,macros"]
  29. --------------------------------------------------
  30. include-tagged::{doc-tests-file}[{api}-config]
  31. --------------------------------------------------
  32. <1> The source indices and query from which to gather data.
  33. <2> The destination index and optional pipeline.
  34. <3> How often to check for updates to the source indices.
  35. <4> How to keep the {transform} in sync with incoming data.
  36. <5> Optional free text description of the {transform}.
  37. include::../execution.asciidoc[]
  38. [id="{upid}-{api}-response"]
  39. ==== Response
  40. The returned +{response}+ contains the updated {transform} configuration
  41. or an error if the update failed or is invalid.