PUT
/
api
/
ledger
/
{ledger}
/
mapping
curl --request PUT \
  --url http://localhost:55001/api/ledger/{ledger}/mapping \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "contracts": [
    {
      "account": "users:001",
      "expr": {}
    }
  ]
}'
{
  "data": {
    "contracts": [
      {
        "account": "users:001",
        "expr": {}
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

ledger
string
required

Name of the ledger.

Example:

"ledger001"

Body

application/json

Response

200
application/json

OK

The response is of type object.