@@ -22,8 +22,8 @@ Starts the synchronization between a source and destination cluster.
2222Requirement
2323-----------
2424
25- To use the ``start`` endpoint, the {+c2c-product-name+} must be in the
26- ``IDLE`` state.
25+ To use the ``start`` endpoint, ``mongosync`` must be in the ``IDLE``
26+ state.
2727
2828Request
2929-------
@@ -56,13 +56,33 @@ Request Body Parameters
5656 - Required
5757 - Name of the destination cluster.
5858
59+ * - ``reversible``
60+ - boolean
61+ - Optional
62+ - If set to ``true``, enables the synchronization operation to be
63+ reversed. For more information, see the :ref:`reverse
64+ <c2c-api-reverse>` endpoint.
65+
66+ Default value is ``false``.
67+
68+ * - ``enableUserWriteBlocking``
69+ - boolean
70+ - Optional
71+ - If set to ``true``, blocks writes on the destination cluster
72+ while the synchronization is in progress. After the
73+ synchronization is committed to the destination cluster, the
74+ original source cluster blocks writes and the destination cluster
75+ accepts writes.
76+
77+ Default value is ``false``.
78+
5979Response
6080--------
6181
6282.. include:: /includes/api/tables/basic-response.rst
6383
64- Example
65- -------
84+ Example 1 - Start a Standard Sync Job
85+ -------------------------------------
6686
6787The following example starts a synchronization job where ``cluster0`` is
6888the source and ``cluster1`` is the destination.
@@ -76,12 +96,32 @@ Request
7696Response
7797~~~~~~~~
7898
99+ .. literalinclude:: /includes/api/responses/success.json
100+ :language: json
101+ :copyable: false
102+
103+ Example 2 - Start a Reversible Sync Job
104+ ---------------------------------------
105+
106+ The following example starts a synchronization job where ``cluster0`` is
107+ the source and ``cluster1`` is the destination. The ``reversible`` and
108+ ``enableUserWriteBlocking`` fields allow the sync to be reversed.
109+
110+ Request
111+ ~~~~~~~
112+
113+ .. literalinclude:: /includes/api/requests/start-reversible.sh
114+ :language: shell
115+
116+ Response
117+ ~~~~~~~~
118+
79119.. literalinclude:: /includes/api/responses/success.json
80120 :language: json
81121 :copyable: false
82122
83123Behavior
84124--------
85125
86- If the ``start`` request is successful, {+c2c-product-name+} enters the
126+ If the ``start`` request is successful, ``mongosync`` enters the
87127``RUNNING`` state.
0 commit comments