Annotations
===========

.. _Annotations: 

Annotations
-----------

A single annotation information.

The `annotations_data` contains the InstantJSON of PSPDFKit as a string. We don't do anything with it ourselves, so storing it as result of JSON.stringify() is perfectly fine.

.. code-block:: json

 message Annotations {
  string item_id = 2;
  AnnotationsType type = 3;
  optional string group_id = 4;
  string annotations_data = 5;
 }

.. list-table::
   :widths: 20 25 55
   :header-rows: 1

   * - Field
     - Type
     - Description
   * - ``item_id``
     - ``string``
     - **Required.** Tem item's Id.
   * - ``type``
     - :ref:`AnnotationsType <AnnotationsType>`
     - **Required.** The type of annotation. See link.
   * - ``group_id``
     - ``string``
     - **Optional.** The group Id.
   * - ``annotations_data``
     - ``string``
     - **Required** 