cURL
curl --request PUT \ --url http://localhost/api/ledger/{ledger}/mapping \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "contracts": [ { "expr": {}, "account": "users:001" } ] } '
{ "data": { "contracts": [ { "expr": {}, "account": "users:001" } ] } }
The access token received from the authorization server in the OAuth 2.0 flow.
Name of the ledger.
"ledger001"
Show child attributes
"users:001"
OK