.. Netfiles API documentation master file, created by
   sphinx-quickstart on Fri Mar  6 11:42:21 2020.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Accept Disclaimer
=================

The ``acceptDisclaimer`` call provides a means to accept the disclaimer of a dataroom.

If, using the :doc:`Check Identity <checkidentity>` or using the :doc:`Get Datarooms <getdatarooms>` call
you receive a dataroom with the a ``disclaimer=`` attribute, you need to check the ``creationDate`` and
the ``acceptionDate`` in the disclaimer-structure.

If the ``acceptionDate`` is empty or if the ``acceptionDate`` is older than the ``creationDate`` (in which
case it means the previous disclaimer was accepted but the administrator changed the disclaimer and it
needs to be accepted again) you need to accept the disclaimer before you can retrieve any content from
that dataroom.

**NOTE**: the ``disclaimer``-attribute does not always exists. If it exists, there is a disclaimer, otherwise
there is no disclaimer.

Request
-------

Request method is ``checkIdentity``:

::

  GET https://app.netfiles.de/;internal&action=mobile.json&apikey=<YourApiKey>&deviceID=<currentDeviceID>&method=acceptDisclaimer
  Authorization: Basic BASE64(UTF8Bytes(<username>:<password>))
  Accept: application/json


Response
--------

200 OK
or
nnn <error>

