annotation-update

Updates a tag content specified by its content-id on a certain document in a collection by a user. The SOAP name of this function is: AnnotationUpdate

Synopsis

void annotation-update(collection, subcollection, content, content-id, document-vse-key, document-vse-key-normalized, username, acl, synchronization, priority, datesecs, weight);
nmtoken collection;
enum subcollection;
content nodeset content;
string content-id;
string document-vse-key;
boolean document-vse-key-normalized;
string username;
string acl;
enum synchronization;
int priority;
int datesecs;
int weight;

Parameters

Exceptions

Authentication

Like all Watson Explorer Engine API functions with the exception of ping, the annotation-update function requires authentication.

When using REST, you can simply pass v.username and v.password as CGI parameters via HTTP or HTTPS to authenticate the REST call to the annotation-update function.

When using the SOAP API, you can pass credentials as parameters on an endpoint, or you can leverage the authentication method that is supported by all Watson Explorer Engine functions. Each provides a setAuthentication method that can be passed an authentication object to provide the username and password under which a function executes. An example of this in Java for a SOAP call to the annotation-update function is the following:

    Authentication authentication = new Authentication();
    authentication.setUsername("joe-user");
    authentication.setPassword("joes-password");

    AnnotationUpdate foo = new AnnotationUpdate();
    foo.setAuthentication(authentication);

A single authentication object would typically be reused throughout each individual application.