/api/item/update

POST Modify data of specified fields of the item.

What tasks can be done with this function?

  • Text output from the external OCR Tools can be added as tags, annotations to the image, and serve as search conditions for later use.

  • The analysis result of the image generated by external Object Detection Tools can be added in the form of tags, and serve as a search condition.

Fields that can be modified are listed as follows:

Parameter

Description

id

Required, the ID of the item to be modified

tags

Optional, tags

annotation

Optional, annotations

url

Optional, the source url

star

Optional, ratings

Sample Code:

var data = {
    "id": "KBN1X9NHDZ99F",
  "tags": ["Design1", "Design2"],
  "annotation": "Awesome",
  "url": "https://dribbble/com",
  "star": 4
};

var requestOptions = {
  method: 'POST',
  body: JSON.stringify(data),
  redirect: 'follow'
};

fetch("http://localhost:41595/api/item/update", requestOptions)
  .then(response => response.json())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Results Returned:

Last updated

Was this helpful?