Skip to content

Commit 57fcb79

Browse files
kosabogipquentin
andcommitted
Adds external link to 'Update a document API' (#4657)
* Adds external link to Update a document API and removes request examples * Restore UpdateRequest example YAML files 2–11 --------- Co-authored-by: Quentin Pradet <[email protected]> (cherry picked from commit 1a02bf3)
1 parent 588baed commit 57fcb79

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,7 @@ time-zone-id,https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html
877877
trim-processor,https://www.elastic.co/docs/reference/enrich-processor/trim-processor
878878
update-dfanalytics,https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-data-frame-analytics
879879
update-desired-nodes,https://www.elastic.co/docs/api/doc/elasticsearch/v9/group/endpoint-cluster
880+
update-document,https://www.elastic.co/docs/reference/elasticsearch/rest-apis/update-document,https://www.elastic.co/guide/en/elasticsearch/reference/8.18/docs-update.html#update-api-example
880881
update-license,https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-license-post
881882
update-trained-model-deployment,https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ml-update-trained-model-deployment
882883
update-transform,https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-transform-update-transform

specification/_global/update/UpdateRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,13 @@ import { Duration } from '@_types/Time'
5555
*
5656
* The `_source` field must be enabled to use this API.
5757
* In addition to `_source`, you can access the following variables through the `ctx` map: `_index`, `_type`, `_id`, `_version`, `_routing`, and `_now` (the current timestamp).
58+
* For usage examples such as partial updates, upserts, and scripted updates, see the External documentation.
5859
* @rest_spec_name update
5960
* @availability stack stability=stable
6061
* @availability serverless stability=stable visibility=public
6162
* @index_privileges write
6263
* @doc_tag document
64+
* @ext_doc_id update-document
6365
* @doc_id docs-update
6466
*/
6567
export interface Request<TDocument, TPartialDocument> extends RequestBase {

0 commit comments

Comments
 (0)