Update Annotation operation
The Update Annotation operation updates the annotation of a message.
The following table describes the <items> XML elements for the Update Annotation operation:
Adapter request elements for the Update Annotation operation
The following figure shows a sample adapter request for the Update Annotation operation:
Sample adapter request for the Update Annotation operation
<hpom-request>
<operation>update-annotation</operation>
<arguments>
<message-id>eced6204-939b-71de-0676-ac1031690000</message-id>
<annotation-id>67f8d76c-96d5-71de-0676-ac1031690000</annotation-id>
<annotation>modified newest 2 annotation</annotation>
</arguments>
</hpom-request>
<operation>update-annotation</operation>
<arguments>
<message-id>eced6204-939b-71de-0676-ac1031690000</message-id>
<annotation-id>67f8d76c-96d5-71de-0676-ac1031690000</annotation-id>
<annotation>modified newest 2 annotation</annotation>
</arguments>
</hpom-request>
The following figure shows the adapter response for the sample request:
Sample adapter response for the Update Annotation operation
<hpom-response>
<metadata>
<status>success</status>
<response-count>1</response-count>
</metadata>
<messages-response>
<message-response>
<metadata>
<status>success</status>
<count>1</count>
</metadata>
<Items>
<Annotations>
<Annotation>
<Author>opc_op</Author>
<Text>Test Text</Text>
<Date>2009-09-01T14:26:29.000+05:30</Date>
<ID>56735b3e-96d5-71de-0676-ac1031690000</ID>
</Annotation>
<Annotation>
<Author>opc_op</Author>
<Text>Test Text</Text>
<Date>2009-09-01T14:26:38.000+05:30</Date>
<ID>5c1e904e-96d5-71de-0676-ac1031690000</ID>
</Annotation>
<Annotation>
<Author>opc_op</Author>
<Text>Test Annotation</Text>
<Date>2009-09-01T14:26:46.000+05:30</Date>
<ID>609bf792-96d5-71de-0676-ac1031690000</ID>
</Annotation>
<Annotation>
<Author>opc_op</Author>
<Text>New Updated Text</Text>
<Date>2009-09-01T14:29:39.000+05:30</Date>
<ID>645c35f4-96d5-71de-0676-ac1031690000</ID>
</Annotation>
<Annotation>
<Author>opc_adm</Author>
<Text>modified newest 2 annotation</Text>
<Date>2009-09-14T10:11:31.000+05:30</Date>
<ID>dfdb8456-a0e8-71de-0676-ac1031690000</ID>
</Annotation>
</Annotations>
</Items>
</message-response>
</messages-response>
</hpom-response>
<metadata>
<status>success</status>
<response-count>1</response-count>
</metadata>
<messages-response>
<message-response>
<metadata>
<status>success</status>
<count>1</count>
</metadata>
<Items>
<Annotations>
<Annotation>
<Author>opc_op</Author>
<Text>Test Text</Text>
<Date>2009-09-01T14:26:29.000+05:30</Date>
<ID>56735b3e-96d5-71de-0676-ac1031690000</ID>
</Annotation>
<Annotation>
<Author>opc_op</Author>
<Text>Test Text</Text>
<Date>2009-09-01T14:26:38.000+05:30</Date>
<ID>5c1e904e-96d5-71de-0676-ac1031690000</ID>
</Annotation>
<Annotation>
<Author>opc_op</Author>
<Text>Test Annotation</Text>
<Date>2009-09-01T14:26:46.000+05:30</Date>
<ID>609bf792-96d5-71de-0676-ac1031690000</ID>
</Annotation>
<Annotation>
<Author>opc_op</Author>
<Text>New Updated Text</Text>
<Date>2009-09-01T14:29:39.000+05:30</Date>
<ID>645c35f4-96d5-71de-0676-ac1031690000</ID>
</Annotation>
<Annotation>
<Author>opc_adm</Author>
<Text>modified newest 2 annotation</Text>
<Date>2009-09-14T10:11:31.000+05:30</Date>
<ID>dfdb8456-a0e8-71de-0676-ac1031690000</ID>
</Annotation>
</Annotations>
</Items>
</message-response>
</messages-response>
</hpom-response>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*