Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
CHANGELOG_BEGIN

- [JSON API - Experimental] Support Exercise by Key. See #4009.

CHANGELOG_END
  • Loading branch information
leo-da committed Jan 16, 2020
1 parent 436ab25 commit db78b00
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions docs/source/json-api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ POST ``/command/exercise``

Exercise a choice on a contract.

``"contractId": "#124:0"`` is the value from the create output.
Exercise by ContractId Request
------------------------------

Request
-------
``"contractId": "#124:0"`` is the value from the create output.

application/json body:

Expand All @@ -322,6 +322,21 @@ application/json body:
}
}
Exercise by Contract Key Request
--------------------------------

application/json body:

.. code-block:: json
{
"templateId": "Account:Account",
"key": ["Alice", "abc123"],
"choice": "Archive",
"argument": {}
}
Response
--------

Expand Down

0 comments on commit db78b00

Please sign in to comment.