1 =======================================================
2 ``PATCH https://bosh.pageplace.de/bosh/rest/sync-data``
3 =======================================================
4 Send changes to the server and get changes since last sync back.
5 This is the main API method for synchronization.
7 Part of the `Sync process`_.
13 OAuth token obtained from `POST https://thalia.de/auth/oauth2/token`_.
15 Example: ``eyJhbGciOiJSUzI1NiJ9.eyJhdWRpZW5jZSI6InRyZWFkZXJ2aXNpb24zIiw...``
17 ``application/json; charset=UTF-8``
19 ``application/json; charset=UTF-8``
23 Example: ``665fc389ef4e47258c5db9fa7821bd19``
25 Example: ``TOLINO_VISION_3``
28 Example: ``publications``
31 Request body parameters
33 ``revision`` of last sync response.
35 ``null`` when it is the first sync ever for this device.
39 No data to sync: Empty array ``[]``.
41 FIXME: document structure
46 When nothing needs to be synchronized to the server, and nothing
47 ever has been synchronized:
49 .. include:: pageplace.bosh-bosh-rest-sync-data.request-first.json
55 HTTP status code: ``200 OK``
57 FIXME: document different types and how progress is saved
60 New bookmarks and comments
61 --------------------------
64 .. include:: pageplace.bosh-bosh-rest-sync-data.response-bookmarks-comments.json