Skip to content

Updates multiple existing examples in-place on DRAFT

Description

Updates multiple existing examples in-place on DRAFT. All examples are validated against the dataset's schema type before any writes occur. If any example fails validation, the entire batch is rejected (all-or-nothing semantics).

Usage

bedrockagentcorecontrol_update_dataset_examples(datasetId, clientToken,
  examples)

Arguments

  • datasetId

    [required] The unique identifier of the dataset.

  • clientToken

    A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.

  • examples

    [required] Examples to update. Each element is a JSON object containing a required exampleId field identifying the existing example, plus the replacement fields. Maximum 1000 examples per call.

Value

A list with the following syntax:

list(
  datasetArn = "string",
  datasetId = "string",
  status = "CREATING"|"UPDATING"|"DELETING"|"ACTIVE"|"CREATE_FAILED"|"UPDATE_FAILED"|"DELETE_FAILED",
  updatedCount = 123,
  updatedAt = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$update_dataset_examples(
  datasetId = "string",
  clientToken = "string",
  examples = list(
    list()
  )
)