Skip to main content
European CommissionEBSI European Blockchain

Trusted Policies Registry API

OpenAPI documentation

tpr get <url>

Command to GET in the Trusted Policies Registry API.

Parameters:

  • url: Path to get.

Examples:

tpr get /policies
tpr get /users/0x12f...

tpr insertUserAttributes <user> <attributes>

Command to assign attributes to an user. The JWT is set in the headers. This method requires the Operator Role in the Trusted Policies Registry. Use the build- prefix to call the API helper to build the transaction.

Parameters:

  • user: Ethereum address of the user.
  • attributes: List of policies to be assigned to the user.

tpr deleteUserAttribute <user> <attribute>

Command to remove an attribute from an user. The JWT is set in the headers. This method requires the Operator Role in the Trusted Policies Registry. Use the build- prefix to call the API helper to build the transaction.

Parameters:

  • user: Ethereum address of the user.
  • attribute: Policy name to be removed from the user.

tpr insertPolicy <policyName> <description>

Command to insert a policy. The JWT is set in the headers. This method requires the Operator Role in the Trusted Policies Registry. Use the build- prefix to call the API helper to build the transaction.

Parameters:

  • policyName: Policy Name.
  • description: Policy description.

tpr updatePolicy <policyIdOrName> <description>

Command to update a policy. The JWT is set in the headers. This method requires the Operator Role in the Trusted Policies Registry. Use the build- prefix to call the API helper to build the transaction.

Parameters:

  • policyIdOrName: Policy ID or Policy Name.
  • description: Policy description.

tpr deactivatePolicy <policyIdOrName>

Command to deactivate a policy. The JWT is set in the headers. This method requires the Operator Role in the Trusted Policies Registry. Use the build- prefix to call the API helper to build the transaction.

Parameters:

  • policyIdOrName: Policy ID or Policy Name.

tpr activatePolicy <policyIdOrName>

Command to activate a policy. The JWT is set in the headers. This method requires the Operator Role in the Trusted Policies Registry. Use the build- prefix to call the API helper to build the transaction.

Parameters:

  • policyIdOrName: Policy ID or Policy Name.