Skip to main content
POST
/
Agent
/
Legal
/
AuthorizeAccessToContract
Authorize Access To Contract
curl --request POST \
  --url https://{host}/Agent/Legal/AuthorizeAccessToContract \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contractId": "<string>",
  "remoteId": "<string>",
  "authorized": true
}
'
{}

Overview

Allows the client to (pre-)authorize access to (or remove authorization to access) one of its Smart Contracts (or one of the Smart Contracts for which the client is part) to a remote party. When (if) the remote party requests access to the the Smart Contract, the broker will return it automatically, if already authorized. If not authorized, a petition to access the Smart Contract will be sent to the clients of the part of the contract for manual approval.

Authentication

Requires a valid JWT bearer token.

Notes

This endpoint uses the request schema notation described in Pattern matching.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
contractId
string
required
remoteId
string
required
authorized
boolean
required

Response

200 - application/json

Success

The response is of type object.