update-dataset-item

Description

Update a dataset item.

Synopsis

$ abeja dataset update-dataset-item [OPTIONS]

  Update dataset item

Options:
  -d, --dataset_id, --dataset-id TEXT
                                  Dataset id  [required]
  -i, --dataset_item_id, --dataset-item-id TEXT
                                  Dataset item id  [required]
  -p, --payload FILENAME          Dataset item payload to update  [required]
  --help                          Show this message and exit.

Options

-d, --dataset_id

Specify the dataset ID which the dataset item to update belongs to. (Required)

-i, --dataset_item_id

Specify the dataset item ID to update. (Required)

-p, --payload

Specify the parameter of the dataset item to update. The format of parameter is json format or yaml format. (Required)

You can refer to the content of parameter ( attributes ) at API document .

Payload definition example (dataset_item_payload.yml)

attributes:
  classification:
  - category_id: 1
    label_id: 2

Example

Update dataset item

Update dataset item.

コマンド:

$ abeja dataset update-dataset-item --dataset_id xxxx --dataset_item_id yyyyy --payload ./dataset_item_payload.yml