THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Following we are listing the available endpoints, and provide examples of sample requests. All listed URLs must be pre-pended by "http://hostname:port/curator" where hostname is "hostname" and "port" are the fully qualified domain name and port where the Curator web application is deployed. We use "curl" as example client to issue HTTP requests.
- Update metadata of an existing product
- URL: /services/metadata/update
- HTTP method: POST
- Description: use this endpoint to update one or more metadata fields for an existing product, while preserving all the other metadata fields
- Parameters:
- "id": product identifier (either "id" or "name" must be specified)
- "name": product name (either "id" or "name" must be specified)
- "metadata.<field name>=<field value>": name and value of metadata field to insert or update. Product metadata fields need to be pre-pended with "metadata." to be distinguished from other HTTP control flow parameters. More than one metadata field can be specified in the same request. To add more than one value for the same field, use multiple "metadata.<field_name>=..." expressions.
- "replace=false" to add the new value(s) to the existing ones for that metadata field (by default replace=true, meaning the new value(s) will override the existing ones)
- "remove=true" to remove an existing metadata field (by default remove=false, meaning the specified values will be added to the field)
- Response: text/plain of the form "id=<product id>"
- Examples:
- curl --data "name=tns_bb313aa_11&metadata.myfield=xyz" http://localhost:9080/curator/services/metadata/update
- curl --data "name=tns_bb313aa_11&metadata.myfield=123&metadata.myfield=abc&replace=false" http://localhost:9080/curator/services/metadata/update
- curl --data "name=tns_bb313aa_11&metadata.myfield=anything&remove=true" http://localhost:9080/curator/services/metadata/update
- curl --data "name=tns_bb313aa_11&metadata.myfield=xyz" http://localhost:9080/curator/services/metadata/update